Search code examples
ruby-on-railsdelayed-job

Rerun errored delayed jobs


Some of the delayed jobs errored due to a bug. I have fixed the bug and now I want to rerun the errored delayed jobs without losing them. Is there any way to rerun all the errored jobs?


Solution

  • This question may help you. Check out steakchasers comment.

    Looks like the ticket is a two step process.

    1. Query for the jobs that failed
    2. Then update the run_at to Time.now