Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Snippets to check Delayed Job data
# Failed
Delayed::Job.where('failed_at IS NOT NULL')
# Active
Delayed::Job.where('failed_at IS NULL AND locked_by IS NOT NULL')
# Queued
Delayed::Job.where('failed_at IS NULL AND locked_by IS NULL')
# Destroy
Delayed::Job.find(id).destroy
# Retry
dj = Delayed::Job.find(id)
dj.update_attribute :failed_at, nil if dj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment