sdk-core
sdk-core copied to clipboard
[Feature Request] On worker clean shutdown, release cached workflow executions from sticky queue
Is your feature request related to a problem? Please describe.
We've been experiencing increased workflow execution latencies whenever we re-deploy workers and shut down the old versions. This seems to be due to cached workflow executions and the default sticky task queue timeout of 10s: https://temporalio.slack.com/archives/CTRCR8RBP/p1635215037092500
Describe the solution you'd like
I'd like the option to release all cached workflow executions from the sticky queue whenever a worker is cleanly shutdown -- our particular deploy mechanism uses SIGTERM.
From the Slack discussion this feature doesn't exist in other SDKs yet but could as well!