Skip to content

job restart does not restart steps with previously saved contexts #3649

@heerdev

Description

@heerdev

I have a job which saved the pojo to database. For each object I am saving the the unique key of the data as execution context in step. I have implemented the reader with ItemStream and using update method to store the custom execution context.

Now, When I am restarting the FAILED job instance using simpleJobOperator.restart(JOB_EXECUTION_ID), the job restarts, but it cannot get the saved custom exeuction context of previosuly FAILED step.

As a work around, I have to save the custom execution context as job execution context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowIssues that should be asked on StackOverflow with the "spring-batch" tag

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions