Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delayed_job locking but not processing

I'm trying to troubleshoot an issue with delayed_job. For some reason I see lots of jobs locked_by and locked_at but nothing being processed out of the queue. Any tips to why this could be happening or how to get it to move on?

I'm using Rails 2.3.11 and Ruby 1.9.2p0

Thanks!

like image 728
Northband Avatar asked Aug 16 '11 15:08

Northband


1 Answers

When delayed job is forcefully terminated (which happens when you deploy a new version to production using capistrano), the currently processing jobs which are locked will stay locked. You can manually clear the lock by setting locked_at and locked_by to null.

like image 121
lulalala Avatar answered Sep 23 '22 17:09

lulalala