Skip to content

Implement Tasklet.stop() [BATCH-2009] #1583

@spring-projects-issues

Description

@spring-projects-issues

Michael Minella opened BATCH-2009 and commented

Narrative

As the batch runtime, I need a way to stop a long running tasklet. The JSR provides the facility for the runtime to call a method on an executing Tasklet (Batchlet in the JSR world), and a well behaved Tasklet will stop processing and return.

Acceptance Criteria

  1. Add the Tasklet#stop() method to the Tasklet interface.
  2. Implement the new method accordingly in the places where we implement the Tasklet interface within the framework (ChunkOrientedTasklet for example).
  3. Update the JobOperator#stop() to call the Tasklet#stop() method if a tasklet is currently running.

Referenced from: commits 81e0c38, 3ed94e8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions