-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix schedule_to_close not triggering after retry issue (#6545)
## What changed? 1. Add "FirstScheduledTime" to ActivityInfo proto 2. Populate it. Logic - it is assigned only once, for the first time activity is scheduled. ScheduleTime for activity is changed every time activity is retried. 3. Change timer creation logic to use FirstScheduledTime for "schedule to close' activity timer. ## Why? "Schedule to close", according to our documentation, should cover the whole lifespan of activity, including all retryes. That was not the case - after every retry we move activityInfo.ScheduleTime forward, thus effectivly not respecting the timeout. ## How did you test it? 1. Add more unit tests 2. Add functional tests to specifically cover this scenario. ## Potential risks Someone is relying on the existing functionality. ## Is hotfix candidate? It was like this for a long time, there is no need for hotfix.
- Loading branch information
1 parent
28d4815
commit fc70bd9
Showing
10 changed files
with
867 additions
and
611 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.