Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job retriggered even when Delayed::Worker.destroy_failed_jobs = false #7

Merged
merged 1 commit into from
Mar 28, 2012

Conversation

mberube
Copy link
Contributor

@mberube mberube commented Mar 27, 2012

In delayed_job, the following flag can be used in delayed job to keep the task after a failure:
Delayed::Worker.destroy_failed_jobs = false

When this flag is set, delayed_job_web will not retry a job if it has failed.

My fix is just to reset the failed_at to nil when retrying a job. Works for fine for me, but tell me if you see any improvements.

ejschmitt added a commit that referenced this pull request Mar 28, 2012
Job retriggered even when Delayed::Worker.destroy_failed_jobs = false
@ejschmitt ejschmitt merged commit 738075e into ejschmitt:master Mar 28, 2012
@ejschmitt
Copy link
Owner

Thanks, looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants