-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(postgres): jobs may never get processed if no workers hear the in…
…itial announcement When jobs are inserted into the 'neoq_jobs', the `announce_job` trigger announces the job to listeners of the job's queue. However, if no workers are available to receive the announcement, or the announcement is somehow lost, it meant those jobs were marooned on the queue. This fix adds a periodic check for post-due pending jobs to ensure that a neoq restart is not necessary to catch marooned, overdue jobs.
- Loading branch information
Showing
3 changed files
with
49 additions
and
24 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