Skip to content

Instantly share code, notes, and snippets.

@davidino
Created April 30, 2012 22:30
Show Gist options
  • Select an option

  • Save davidino/2563259 to your computer and use it in GitHub Desktop.

Select an option

Save davidino/2563259 to your computer and use it in GitHub Desktop.
job continuous failing
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