Skip to content

SimpleJobLauncher parameter validation and JobExecutionListener [BATCH-2375] #1229

Open
@spring-projects-issues

Description

@spring-projects-issues

Sandor Nemeth opened BATCH-2375 and commented

When execution jobs with the SimpleJobLauncher, the validation of the parameters happens without regard to the set JobExecutionListeners. However the same call to the same JobParametersValidator is handled (at least regarding to the JobExecutionListener#afterJob(JobExecution jobExecution) call) properly in the AbstractJob class.

I have attached the minimal case to reproduce the scenario. Simply run mvn spring-boot:run to run the application. The expected outcome is to see at least the "after job" message in the console.

Priority is set to major, because there are business scenarios that can be affected by this behaviour (e.g. when developing a completely automatic import process where if the import fails, the process should be completely stopped (the system should not be able to start a new process in this case)).
Please redefine the priority if you think otherwise.


Affects: 3.0.3

Attachments:

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