-
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.
Worker clears locks on shutdown [PLAT-1593]
In some cases the ClearLocks plugin from Delayed::Job may fail to clear the locked_at/locked_by fields on a job because it was interrupted at a bad time (see [PLAT-1590]). The delayed_worker is still removed since the heartbeat is using a separate connection, leaving orphaned jobs behind that are not re-run until the 4 hour max run time has passed. This change will require the worker to clear its own locks when it is shutting down before it removes itself from the delayed_workers table.
- Loading branch information
Showing
4 changed files
with
29 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
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