Last active
March 23, 2017 19:02
-
-
Save kalepail/7dfdc722fc40c9a9d94d30a59dc759dc to your computer and use it in GitHub Desktop.
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
// Alert if there are any stuck jobs | |
let stuck_jobs = Jobs.find(‘_id’, { | |
status: {$in: [‘ready’, ‘running’]} | |
}, {fields: { | |
type: 1, | |
data: 1 | |
}}).fetch(); | |
if (stuck_jobs.length > 0) | |
Raven.log(3, ‘There are stuck jobs’, stuck_jobs); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment