collectiveidea/delayed_job — Issue #310: Problem running workers via delayed_jobs script
Author: homerlex
Created: 2011-11-21 21:09:10+00:00
State: open

Rails 2.3.11
Ruby 1.8.6
CentOS 5.7

Just loaded up the delayed_job and started playing with it. I see that the worker runs fine when I start it with rake:
rake:jobs:work

However, when I try to start with the script like:
script/delayed_job start

... I get the following error right away and the worker thread exits.

Delayed::Backend::ActiveRecord::Job Update (0.0ms) Mysql::Error: MySQL server has gone away: UPDATE `delayed_jobs` SET locked_by = null, locked_at = null WHERE (locked_by = 'delayed_job host:xxxx.local pid:1645')
Mysql::Error: MySQL server has gone away: UPDATE `delayed_jobs` SET locked_by = null, locked_at = null WHERE (locked_by = 'delayed_job host:xxxx.local pid:1645')

Any idea why this won't work with the script?