Uploaded image for project: 'Spring Batch Admin'
  1. Spring Batch Admin
  2. BATCHADM-219

Support StoppableTasklet

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Manager
    • Labels:
      None

      Description

      The stop method of the SimpleJobService does not use the SimpleJobOperator stop method. Paradoxically it is using the stop method of the JsrJobOperator.
      So instead of calling those 2 statements:

      jobExecution.stop();
      jobRepository.update(jobExecution);
      

      could you please use the SimpleJobOperator::stop(long executionId) method that calls the StoppableTasklet::stop() method to send a stop signal to running tasklet?
      Without this change, from a talks, we have to frequently reload jobExecution context from database to check if status has changed to STOPPING.

      See pull request: https://github.com/spring-projects/spring-batch-admin/pull/37

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            elryk Elryk
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: