-
Notifications
You must be signed in to change notification settings - Fork 911
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
[Bug] Dev Server hangs for 10 seconds on early shutdown #4174
Comments
Potentially fixed by this PR. Will reevaluate once the PR lands in a cli release. |
Can still reproduce with cli 0.5.0. |
Users have noticed this with Temporalite too. |
works fine in v0.8.0. Was the fix included in v0.5.0? |
Tested just now with 0.8.0, and it still happens. |
This looks like a server issue, I'll transfer to |
This appears to have been fixed in server 1.24.0 / CLI 0.13.0, presumably thanks to #5459. I tested with various sleep durations, ranging from 0.01 seconds up to 2 seconds, and in all cases, the dev server completed shutdown within 1000-1400 ms of receiving the signal. |
Describe the bug
Launching the dev server, then sending it a shutdown signal (ie. ctrl-c) quickly after, cause the process to hang out for 10 seconds before the process actually exits. If waiting for a very short time (less than a second) before sending the signal, termination is immediate.
This delay is caused by the Worker node failing to connect to Frontend, and thus waiting until expiration of its context deadline delay (thus 10 seconds).
This is most apparent when using dev server in integration tests (eg. through SDKs "test environment" feature), as these tests frequently execute very quickly.
Minimal Reproduction
results in a 10 seconds delay, followed by this error message:
Incrementing the sleep time in the above command to
1.0
, no hang and no error message is observed.Environment/Versions
The text was updated successfully, but these errors were encountered: