Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a timer when awaiting Quartz shutdown #28119

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Sep 21, 2022

Use a timer when awaiting Quartz shutdown

The Quartz scheduler shutdown seems like it
can block indefinitely if there is an exception
in a yet to be completed job.
To guard against this, we ensure that we only
wait a configurable amount of time for the scheduler
to shut down.

This is a breaking change because previously we waited
indefinitely.

Relates to #28114

@geoand
Copy link
Contributor Author

geoand commented Sep 23, 2022

PR updated

@geoand geoand force-pushed the quartz-defensive-shutdown branch 2 times, most recently from d329d2a to a4d38da Compare September 23, 2022 13:54
@geoand geoand force-pushed the quartz-defensive-shutdown branch from aadf369 to 5487f50 Compare September 26, 2022 05:17
@quarkus-bot

This comment has been minimized.

@geoand geoand force-pushed the quartz-defensive-shutdown branch from 5487f50 to 16bc392 Compare September 26, 2022 06:47
Copy link
Member

@machi1990 machi1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a comment about making the config a runtime one from the get go, otherwise the change looks good. Thanks @geoand

I leave the final review to @mkouba

The Quartz scheduler shutdown seems like it
can block indefinitely if there is an exception
in a yet to be completed job.
To guard against this, we ensure that we only
wait a configurable amount of time for the scheduler
to shut down.

This is a breaking change because previously we waited
indefinitely.

Relates to quarkusio#28114

Co-authored-by: Manyanda Chitimbo <[email protected]>
@geoand geoand force-pushed the quartz-defensive-shutdown branch from 16bc392 to badebc8 Compare September 26, 2022 13:26
@geoand geoand added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Sep 26, 2022
@geoand geoand merged commit bcb3d06 into quarkusio:main Sep 26, 2022
@quarkus-bot quarkus-bot bot added this to the 2.14 - main milestone Sep 26, 2022
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Sep 26, 2022
@geoand geoand deleted the quartz-defensive-shutdown branch September 26, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants