Announcement Announcement Module
Collapse
No announcement yet.
Pausing a resumed job fails Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pausing a resumed job fails

    Hi,

    We have a requirement that user can pause-resume the job many times.

    The JobOperator.pause and restart work only 2 times. Means I pause a job and can resume it. But then pausing the same job fails . Can u shed some light on this.

    Thanks,Ujjwala

  • #2
    What version of Spring Batch are you using? JobOperator doesn't have a pause() method. It does have a stop() method which should do what you need. Works for me anyway.

    Comment


    • #3
      If your startLimit is only 1, then it will cause an exception after the first start. Perhaps this is what you're seeing?

      Comment


      • #4
        Default start limit is Integer.MAX_VALUE

        If the defult limit is Integer.MAX_VALUE and I have not set any explicit start limit for the steps so this is not a startLimit issue.

        I am using the stop method after upgrade to M4.

        Comment


        • #5
          Any exceptions logged? Anything else in the logs that looks interesting?

          Comment

          Working...
          X