-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(cli): shut down timers at the end of execution #9536
Conversation
1c0a78c
to
398e5d3
Compare
@ADD-SP can you confirm this is alright? |
wondering; shouldn't this be fixed in timer-ng instead? |
I think timer-ng is mostly behaving as expected here. I believe the 1s shutdown delay observed currently is due to a |
this is an old problem caused by a lack of IO in the nginx control loop, workarounds are available. See openresty/lua-resty-core#337 That said; from that issue I see that I already pointed that out before... |
Summary
With timer-ng, the CLI has become slow to terminate as nginx attempts to wait for all pending timers to stop before exiting:
This commit explicitly shuts down the timer-ng instance so that the CLI can quickly exit:
Full changelog