-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ContinueAsNewSuggested in scheduler workflow (#4990)
**What changed?** Scheduler workflow uses server-sent suggestion for when to continue-as-new instead of fixed iteration count. Note this is not enabled in this PR yet. **Why?** Automatically handle history size/event count too large conditions (or any future conditions added by the server), which we might get if we do more work than expected per iteration. **How did you test it?** new unit tests, also replaced for loop with previous version to verify actual iteration count didn't change **Potential risks** The default history size suggestion is at 4MB, which we could hit after just a few large payload responses, and then we'd do continue-as-new more often than we might like.
- Loading branch information
1 parent
88f8f11
commit b8163ce
Showing
2 changed files
with
85 additions
and
7 deletions.
There are no files selected for viewing
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