Skip to content

Conversation

@dnr
Copy link
Contributor

@dnr dnr commented Mar 22, 2023

What changed?
Calculate schedule sleep time right before sleeping, after local activities have been run.

Why?
The previous logic ignored the time taken by local activities, so it could end up sleeping too long. It's more accurate to calculate it later.

How did you test it?
existing unit & integration tests

Potential risks
Workflow determinism: we need to be careful to always set a positive sleep time whenever the previous logic did, since the SDK doesn't generate a timer for a negative or zero sleep time. There's logic to account for this, though it might have a bug.

Is hotfix candidate?
yes

@dnr dnr requested a review from a team as a code owner March 22, 2023 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants