-
Notifications
You must be signed in to change notification settings - Fork 880
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle ResourceExhausted from RecordTaskStarted in task poll (#7093)
## What changed? Return ResourceExhausted directly to client if we get it from history on RecordTaskStarted. ## Why? If history is overloaded and we retry immediately, we can end up in a loop where we keep matching tasks and sending them to history, increasing load on history and also persistence as we cycle tasks to the end of the queue. Returning the error effectively inserts the client in this loop, slowing it down. ## How did you test it? existing tests ## Potential risks ## Is hotfix candidate? yes
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 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