tobi / delayed_job

Database backed asynchronous priority queue -- Extracted from Shopify
http://tobi.github.com/delayed_job
MIT License
2.15k stars 1.25k forks source link

Delayed job hangs when running work_off #52

Open suttree opened 12 years ago

suttree commented 12 years ago

Hi,

When running the delayed_job rake task, it appears that delayed_job hangs without executing any of the jobs.

The rake task executes and initializes, but as soon as it gets into the work_off method it does nothing more. There's no database activity, nor any cpu activity.

Killing the rake task does however cause the jobs to run as the process cleans up after itself, so it seems like nothing happens in the rake task until it is forcibly stopped.

Has anyone experienced anything similar? We're not running multiple databases and there are no obvious errors appearing in any log files.

Also, running Delayed::Job.work_off in the rails console works fine, so it seems to be a problem with running that command via rake...