Created
April 30, 2012 22:30
-
-
Save davidino/2563259 to your computer and use it in GitHub Desktop.
job continuous failing
This file contains hidden or 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
| postJob.on('failed',function(){ | |
| var obj = postJob.toJSON() | |
| if(!isNAN(obj.attempts.remaining) && obj.attempts.remaining == 0){ | |
| redisClient.decr(job.data.title) | |
| util.log('job post definetly failed') | |
| } | |
| util.log('job post failed') | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment