Spring Batch
  1. Spring Batch
  2. BATCH-321

Throw exception if attempt to create duplicate job instance occurs (based on job parameters)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.m5
    • Component/s: Core
    • Labels:
      None

      Description

      If job is marked as non restartable but step is marked as allowRestartIfCompleted, a step can restart in a job that is otherwise not supposed to restart. This seems to be because a second instance of the same job can be created with the same job identifier/parameters. Throwing an exception at the repository/dao level should fix this. This means that if a non-restartable job fails, it will need to be reinvoked with new paramters (i.e. manually).

      See forum thread: http://forum.springframework.org/showthread.php?p=162451

        Activity

        Hide
        Dave Syer added a comment -

        Assume closed as resolved and released

        Show
        Dave Syer added a comment - Assume closed as resolved and released

          People

          • Assignee:
            Robert Kasanicky
            Reporter:
            Douglas C. Kaminsky
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 0.25d
              0.25d
              Remaining:
              Remaining Estimate - 0.25d
              0.25d
              Logged:
              Time Spent - Not Specified
              Not Specified