forked from gocraft/work
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Requeue in progress jobs and clean stale lock info on stop (#1)
In case there is a failover with a Redis Sentinel cluster with data loss there can be stale lock information which can cause job processing to be stuck if the max concurrency limit is reached. Therefore, re-enqueue the jobs which were in progress and also clean the stale lock info for the worker pool. For the cleanup to be thorough, the stop would need to be called on each worker pool instance. Co-authored-by: Kavish Gambhir <kavish.gambhir@go-jek.com> Co-authored-by: Suhas Karanth <sudo.suhas@gmail.com>
- Loading branch information
1 parent
6d45b29
commit 3288c13
Showing
4 changed files
with
97 additions
and
9 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