Thanks -- after I asked my question I realized I can use locked_at and locked_by to do this.
So is there a recommend signal I should send to the worker? And will the 'error' or 'failure' hooks be invoked on the job before the worker quits?
Thanks!
John
Joshua Tidsbury
unread,
Oct 8, 2011, 5:49:38 PM10/8/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to <delayed_job@googlegroups.com>
In some instances, I have added a column to the delayed job table that the worker occasionally checks, and if the flag is set to cancel, it just stops what it is doing and then completes the task cleanly so you don't have to worry about bringing another
worker back online.