-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return retriable tasks from get_result{,s_since}
Modify the queue's get_result() and get_results_since() primitives to return tasks that failed on an earlier run and are scheduled to rerun later. This keeps all callers the same by making the client's wait() and wait_all() methods ignore retriable tasks until they are fully done. However, this adds a new wait_once() to wait for a task until it asks to retry or finishes, whichever happens first.
- Loading branch information
Showing
4 changed files
with
231 additions
and
27 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
Oops, something went wrong.