Skip to content

Reproduce heartbeats #1885

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ndtretyak
Copy link
Contributor

Test reproducing #1706

@ndtretyak ndtretyak requested a review from a team as a code owner March 25, 2025 18:47
@Quinn-With-Two-Ns
Copy link
Contributor

Hi #1706 is now resolved and a fix will be included in the next release. The SDK will not correctly wait for the workflow tasks to finish before shutting down the local activity worker (assuming a graceful stop time is provided)

@ndtretyak
Copy link
Contributor Author

In my opinion, it's fine not to wait for the workflow tasks to finish and let them fail. However, they currently end up in an invalid state and continue heartbeating. Is it possible to stop heartbeating if the local activity worker has already stopped?

Also, there is no WorkerStopTimeout in the server's code https://github.com/search?q=repo%3Atemporalio%2Ftemporal%20WorkerStopTimeout&type=code, so this fix alone won't prevent server's scheduler from getting stuck.

@Quinn-With-Two-Ns
Copy link
Contributor

However, they currently end up in an invalid state and continue heartbeating.

The worker is not in any invalid state, it is waiting for the local activity to finish or timeout

@ndtretyak
Copy link
Contributor Author

I added another commit setting ScheduleToCloseTimeout to 2 seconds and StartToCloseTimeout to 1 second, but the workflow task continues heartbeating for the entire duration of the test (15 seconds).

@Quinn-With-Two-Ns
Copy link
Contributor

I added another commit setting ScheduleToCloseTimeout to 2 seconds and StartToCloseTimeout to 1 second, but the workflow task continues heartbeating for the entire duration of the test (15 seconds).

Ah okay that is not correct I agree. Thank you for explaining. @yuandrew can you please take a look

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.

2 participants