Skip to content

Move publication of ApplicationReadyEvent back to after runners have been called and provide new event that's published before #11484

Closed
@wilkinsona

Description

@wilkinsona

#7656 moved the logic that calls any CommandLineRunners and ApplicationRunners to a point after the ApplicationReadyEvent has been fired. This means there's no longer an event that can be used to learn when the runners have been called.

The proposal is to introduce a new event (RunnersCompletedEvent?) that is fired when the runners have been called. We may also want to introduce a second event (RunnersFailedEvent?) that can be fired when one of the runners fails (throws an exception). As things stand an exception from a runner will result in ApplicationFailedEvent being published despite ApplicationReadyEvent already having been published.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions