Closed ndtretyak closed 4 months ago
Thanks for the report! The worker shutdown should succeed and the exception be thrown out of run()
if those are the actual workflow and activities you're running. But if it's a more advanced activity that is not respecting cancellation, it's possible worker shutdown is not completing because it is cancelling activities but they are not respecting cancellation in some way. I will test with your above scenario and confirm.
I don't actually run the activities. The authorization token is incorrect, so the worker cannot retrieve any tasks from the server.
I have replicated this with your code. I think this is actually in our Rust Core layer, so I have opened https://github.com/temporalio/sdk-core/issues/667.
@cretz the ticket in rust sdk is resolved. does it mean this ticket is resolved and can be closed?
Yes, closing. This has not yet been made available in a released Python SDK version, but we hope to do another release soon.
Describe the bug
Worker hangs after an error during polling.
Minimal Reproduction
I just start a worker with an incorrect token, so that my server responds with
Request unauthorized.
.Output:
Then, the process just hangs forever.
Environment/Versions