title: How spring batch admin is stopping a running job?
body: <p>How spring batch admin is stopping a running job from the UI .</p>
  
  <p>On the spring batch admin's online documentation i have read the following lines .</p>
  
  <blockquote>
    <p>"A job that is executing can be stopped by the user (whether or not it
    is launchable). The stop signal is sent via the database and once
    detected by Spring Batch in whatever process is running the job, the
    job is stopped (status moves from STOPPING to STOPPED) and no further
    processing takes place."</p>
  </blockquote>
  
  <p>Does that mean Spring batch admin UI is directly changing the status of job inside the spring batch table ?</p>
  
  <p><strong>UPDATE:</strong> I tried executing the below query on the running job .</p>
  
  <pre><code>update batch_job_execution set status="STOPPED" where job_ins
  tance_id=19;
  </code></pre>
  
  <p>The above query is getting updated in the DB but spring batch is not bale to stop the running job.</p>
  
  <p>If anybody has tried this please do share the logic here .</p>