-
-
Notifications
You must be signed in to change notification settings - Fork 331
Since 1.12.1: Shutdown (or rather startup?) fails due to unreferenced variable #463
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
Comments
Oh maybe just moving Lines 408 to 412 in 7557943
|
Or probably moving |
While @FinnLidbetter 's change seems appropriate, I wonder if you could give us more details about your setup @aberres. What OS are you on, and how are you stopping the process? Does it always happen? The window in which this can happen at the moment (given the current implementation) seems extremely narrow, and I'm unable to reproduce the issue. |
Yes, sure. The environment this happens on are Ubuntu Docker containers running on GKE (Google Kubernetes Engine). As we shut down/restart worker processes depending on available workload and additionally spin up complete environments for every branch in CI we got quite some shutdowns and restarts of workers. My gut feeling is that we are not seeing this issue most of the time. I had another look at the logs and I'm a bit puzzled. It seems as if this message is not thrown during shutdown, but during startup. If I read the logs correctly, sometimes SIGTERM is triggered pretty much instantly. Sorry for the screenshots, but getting human readable text logs out of the Google Logs Explorer does not seem to be straight forward. LogsNote the second line, right after starting: Some time later (we are waiting for a database instance to come up) the startup process continues as expected: And then boom |
OK, that's what I suspected. In that case, Finn's change should fix this problem. Thanks for the details! |
What version of Dramatiq are you using?
1.21.1
What did you do?
Since the update from 1.12.0 to 1.12.1 we are seeing the following errors:
I could not yet investigate further, but maybe it is related to 8da5157?
The text was updated successfully, but these errors were encountered: