ejschmitt / delayed_job_web

Resque like web interface for delayed job

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

nielsm opened this issue · comments

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.