-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
in: corerelated-to: performancestatus: need-help-to-reproduceIssues that we welcome the community to help us reproduceIssues that we welcome the community to help us reproducetype: enhancement
Description
When running a job via SimpleJobLauncher#run
, it creates new JobExecution, but retrieves all executions of the job from database:
Line 116 in f5041e6
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
Labels
in: corerelated-to: performancestatus: need-help-to-reproduceIssues that we welcome the community to help us reproduceIssues that we welcome the community to help us reproducetype: enhancement