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

Don't heartbeat if poller is stopped #1707

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ndtretyak
Copy link
Contributor

What was changed

ProcessWorkflowTask will now stop sending heartbeats if the worker is stopped.

Why?

Without this change, workflows with local activities could hang indefinitely, waiting for a local activity to execute even when the local activity worker has already stopped.

Checklist

  1. Closes ProcessWorkflowTask is not stopped on worker.Stop() #1706

  2. How was this tested:

New unit test

  1. Any docs updates needed?

No

@ndtretyak ndtretyak requested a review from a team as a code owner November 12, 2024 09:37
@cretz
Copy link
Member

cretz commented Nov 12, 2024

Added comment on #1706 mentioning that we don't want to automatically make workflow tasks with local activities start failing on poller stop (due to task timeout because we stop heartbeating), but maybe there is some other issue here with worker stop and local activities.

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.

ProcessWorkflowTask is not stopped on worker.Stop()
2 participants