title: SpringBatch - Step no longer executing: Step already complete or not restartable
body: <p>I have a single step springbatch application. The job is as follows:</p>
  <pre><code>@Bean
  public Job databaseCursorJob(@Qualifier(&quot;databaseCursorStep&quot;) Step exampleJobStep,
                               JobBuilderFactory jobBuilderFactory) {
      return jobBuilderFactory.get(&quot;databaseCursorJob&quot;)
              .incrementer(new RunIdIncrementer())
              .flow(exampleJobStep)
              .end()
              .build();
  }
  </code></pre>
  <p>I start the job from a springboot application. This afternoon, I attempted to add a second step to the job. Essentially as follows:</p>
  <pre><code>@Bean
  public Job databaseCursorJob(@Qualifier(&quot;databaseCursorStep&quot;) Step exampleJobStep,
                               JobBuilderFactory jobBuilderFactory) {
      return jobBuilderFactory.get(&quot;databaseCursorJob&quot;)
              .incrementer(new RunIdIncrementer())
              .flow(exampleJobStep).next(partitionStep())
              .end()
              .build();
  }
  </code></pre>
  <p>In other words, just adding the &quot;next(partitionStep()). However, ever since I did this, the job finishes without executing any step (see shell output below). In fact, even after removing the second step and going back to the original job, it refuses to execute the step. Before attempting to add the second step, I never once encountered this problem. I have gone so far as restarting my VM and it still skips the step. I am rather dead in the water until I resolved this. Grateful for any insights. thanks.</p>
  <pre><code>2020-09-01 14:49:00.260  INFO 6913 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8087 (http) with context path ''
  2020-09-01 14:49:00.263  INFO 6913 --- [           main] f.p.r.Application    : Started Application in 7.752 seconds (JVM running for 9.092)
  2020-09-01 14:49:00.268  INFO 6913 --- [           main] o.s.b.a.b.JobLauncherCommandLineRunner   : Running default command line with: []
  2020-09-01 14:49:00.579  INFO 6913 --- [           main] o.s.b.c.l.support.SimpleJobLauncher      : Job: [FlowJob: [name=databaseCursorJob]] launched with the following parameters: [{}]
  2020-09-01 14:49:00.698  INFO 6913 --- [           main] o.s.batch.core.job.SimpleStepHandler     : Step already complete or not restartable, so no action to execute: StepExecution: id=120, version=4, name=databaseCursorStep, status=COMPLETED, exitStatus=COMPLETED, readCount=1, filterCount=0, writeCount=1 readSkipCount=0, writeSkipCount=0, processSkipCount=0, commitCount=2, rollbackCount=0, exitDescription=
  2020-09-01 14:49:00.730  INFO 6913 --- [           main] o.s.b.c.l.support.SimpleJobLauncher      : Job: [FlowJob: [name=databaseCursorJob]] completed with the following parameters: [{}] and the following status: [COMPLETED]
  </code></pre>