Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.7
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Windows 7 Ultimate, but I imagine this is true for all OSes; Java 1.6.0_20

      Description

      If a process hosting a job dies unexpectedly or is killed (Ctrl-C, kill -9, etc), the job cannot be restarted, because Spring Batch is not aware that the process was killed.

      Much like other software can detect whether it was shut down gracefully v. abruptly, Spring Batch should be enhanced to do so. My guess would be to have Spring Batch update the JobRepository with a flag saying that a particular JobExecution was completed gracefully only upon normal exit (via -stop or end of flow). Then, upon a restart attempt of the JobExecution, Spring Batch could detect whether or not the last JobExecution terminated ubruptly v. gracefully and restart appropriately.

        Attachments

          Activity

            People

            • Assignee:
              david_syer Dave Syer
              Reporter:
              matthewadams Matthew T. Adams
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: