Skip to content

Running a job causes retrieval of full history of job executions #4169

@glaz666

Description

@glaz666

When running a job via SimpleJobLauncher#run , it creates new JobExecution, but retrieves all executions of the job from database:

List<JobExecution> executions = jobExecutionDao.findJobExecutions(jobInstance);

The approach to create new executions should be revised towards constant timing and constant memory usage regardless of how many times a job was executed in past.

My proposal would be to change a query to limit response size, e.g. last execution is enough to make a decision if running job instance exist.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions