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

Reload doesn't clear attempts or last error when used with ActiveRecord backend #77

Open
nielsm opened this issue May 12, 2015 · 0 comments

Comments

@nielsm
Copy link

nielsm commented May 12, 2015

DelayedJob ActiveRecord 4.0.3 doesn't allow mass assignment of several attributes. As a result, the reload button doesn't reset the job as much as it wants to. Specifically

attr_accessible :priority, :run_at, :queue, :payload_object,
:failed_at, :locked_at, :locked_by, :handler

So, attempts and last_error aren't reset. Due to the backoff in DelayedJob, not being able to change attempts is a problem.

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

No branches or pull requests

1 participant