collectiveidea/delayed_job — Issue #351: changes environment after restart
Author: ermolaev
Created: 2012-02-05 01:50:26+00:00
State: open

I have a next problem
```Mysql2::Error: MySQL server has gone away```

This problem was resolved changing option
```reconnect: true```
in database.yml

But DJ self restarting in **development** environment, though it was running in **production**

2012-02-05T04:33:51+0400: [Worker(delayed_job host:grouppriceproduction pid:22704)] Exiting... - **production**
2012-02-05T04:34:28+0400: [Worker(delayed_job host:grouppriceproduction pid:24770)] Starting job worker - **development**