Skip to content
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

Make Worker.Stop reentrant #906

Merged
merged 1 commit into from
Sep 2, 2022
Merged

Make Worker.Stop reentrant #906

merged 1 commit into from
Sep 2, 2022

Conversation

cretz
Copy link
Member

@cretz cretz commented Sep 2, 2022

What was changed

Need to make worker Stop() safe for a second call

Why?

We call stop internally on fatal error, so a user's stop call should do nothing

Checklist

  1. Closes Worker fatal error can cause double worker stop #903

@cretz cretz merged commit e7905ec into temporalio:master Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Worker fatal error can cause double worker stop
2 participants