Skip to content

BatchStatus#isRunning() is not consistent with JobExplorer#findRunningJobExecutions(String) or JobExecution#isRunning() #1483

Closed
@spring-projects-issues

Description

@spring-projects-issues

Alexis SOUMAGNE opened BATCH-2114 and commented

In STOPPING status should be considered as a "running" status.
The endTime is null until job status is STOPPED. Which means that the job did not recieved interuption signal yet.

Simply the code should be :

public boolean isRunning() {
   return this == STARTING || this == STARTED || this == STOPPING;
}

Affects: 2.2.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions