Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a RepeatedTaskQueue in SqsJobConsumer (#1071)
* Use a RepeatedTaskQueue in SqsJobConsumer This fixes #1069, which was originally a bug in RepeatedTaskQueue back in the day. We should prefer using RepeatedTaskQueue instead of hand rolling threads to prevent repeating the same mistakes. In addition, job consumers will backoff if there is no work or run into errors. Now every parallel job consumer runs as a RepeatedTask and each Task consumes N messages and dispatches them to separate executor service for running.
- Loading branch information
Ryan Hall
committed
Jun 21, 2019
1 parent
c3f502b
commit 18d41ac
Showing
10 changed files
with
170 additions
and
95 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
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.