collectiveidea/delayed_job_mongoid — Issue #22: MySQL server has gone away
Author: britg
Created: 2012-01-16 22:37:11+00:00
State: open

We're using Delayed Job on Mongo for queue processing, but our workers have to interact with a MySQL server to complete our jobs.

DJ works perfectly when run through the rake tasks, but when daemonized using:

script/delayed_job start

the worker starts in the background but as soon as its up and pulls its first job, we get a 'MySQL server has gone away' error. It happens every time and only when using the daemonizer.

Any suggestions?