Lock delay but do not process

I am trying to fix a problem with delayed_job. For some reason, I see a lot of locked_by and locked_at jobs, but nothing is being processed from the queue. Any advice why this might happen or how to make it move on?

I am using Rails 2.3.11 and Ruby 1.9.2p0

Thanks!

+4
source share
1 answer

When a deferred task is forcibly completed (which happens when you deploy a new production version using capistrano), the currently processed jobs that are locked will remain locked. You can manually clear the lock by setting the locked_at and locked_by to null.

+4
source

All Articles