brianlmoon/GearmanManager — Issue #34: Worker exits after every job
Author: littleape
Created: 2012-01-18 15:11:51+00:00
State: open

I'm having a weird problem where the worker exists after every processing jobs. I'm new to gearman manager but this doesn't seem normal.

I'm running this on CentOS 5 inside virtual machine, gearman 0.27 and php 5.3.0

convert_job worker file can't be causing fatal errors because it's very simple:

manager log:

Date PID Type Message
[2012-01-18 09:56:27.531608] 16924 PROC User set to gearman
[2012-01-18 09:56:27.531759] 16924 DEBUG Registering signals for parent
[2012-01-18 09:56:27.531855] 16924 INFO Loading workers in /etc/gearman-manager/workers
[2012-01-18 09:56:27.531996] 16924 INFO Loading workers in /home/convert/gearman
[2012-01-18 09:56:27.532632] 16925 PROC Helper forked
[2012-01-18 09:56:27.532880] 16925 INFO Loading workers in /etc/gearman-manager/workers
[2012-01-18 09:56:27.532967] 16925 INFO Loading workers in /home/convert/gearman
[2012-01-18 09:56:27.541318] 16924 PROC Started with pid 16924
[2012-01-18 09:56:27.541968] 16924 DEBUG Registering signals for child
[2012-01-18 09:56:27.542353] 16926 WORKER Adding server 127.0.0.1
[2012-01-18 09:56:27.542527] 16926 WORKER Adding job convert_job
[2012-01-18 09:56:27.543619] 16924 PROC Started child 16926 (convert_job)
[2012-01-18 09:58:47.730125] 16924 PROC Child 16926 exited (convert_job)
[2012-01-18 09:58:47.730753] 16924 DEBUG Registering signals for child
[2012-01-18 09:58:47.731132] 17137 WORKER Adding server 127.0.0.1
[2012-01-18 09:58:47.731273] 17137 WORKER Adding job convert_job
[2012-01-18 09:58:47.731621] 16924 PROC Started child 17137 (convert_job)
[2012-01-18 09:58:47.732286] 17137 WORKER (H:localhost.local:36) Starting Job: convert_job
[2012-01-18 09:58:47.732342] 17137 DEBUG (H:localhost.local:36) Workload: d32b8b4774d5fc8ddd77c2ee250e22e11ff630f6
[2012-01-18 09:58:47.732393] 17137 DEBUG (H:localhost.local:36) Calling function for convert_job.
[2012-01-18 09:58:47.732463] 17137 WORKER (H:localhost.local:36) convert requested
[2012-01-18 09:58:47.732561] 17137 DEBUG (H:localhost.local:36)
[2012-01-18 09:59:13.321011] 16924 PROC Child 17137 exited (convert_job)
[2012-01-18 09:59:13.321735] 16924 DEBUG Registering signals for child
[2012-01-18 09:59:13.322242] 17177 WORKER Adding server 127.0.0.1
[2012-01-18 09:59:13.322394] 17177 WORKER Adding job convert_job
[2012-01-18 09:59:13.322665] 16924 PROC Started child 17177 (convert_job)
[2012-01-18 09:59:13.323583] 17177 WORKER (H:localhost.local:37) Starting Job: convert_job
[2012-01-18 09:59:13.323633] 17177 DEBUG (H:localhost.local:37) Workload: 1d29380cb77304a882282d1b20f7b8269e4eb248
[2012-01-18 09:59:13.323671] 17177 DEBUG (H:localhost.local:37) Calling function for convert_job.
[2012-01-18 09:59:13.323735] 17177 WORKER (H:localhost.local:37) convert requested
[2012-01-18 09:59:13.323792] 17177 DEBUG (H:localhost.local:37)
[2012-01-18 09:59:27.829840] 16924 PROC Child 17177 exited (convert_job)
[2012-01-18 09:59:27.830391] 16924 DEBUG Registering signals for child
[2012-01-18 09:59:27.830688] 17206 WORKER Adding server 127.0.0.1
[2012-01-18 09:59:27.830824] 17206 WORKER Adding job convert_job
[2012-01-18 09:59:27.831086] 16924 PROC Started child 17206 (convert_job)
[2012-01-18 09:59:27.831934] 17206 WORKER (H:localhost.local:38) Starting Job: convert_job
[2012-01-18 09:59:27.831974] 17206 DEBUG (H:localhost.local:38) Workload: 1505aa7cc978870221300cf3f518f5cb0ca5574b
[2012-01-18 09:59:27.832001] 17206 DEBUG (H:localhost.local:38) Calling function for convert_job.
[2012-01-18 09:59:27.832050] 17206 WORKER (H:localhost.local:38) convert requested
[2012-01-18 09:59:27.832167] 17206 DEBUG (H:localhost.local:38)
[2012-01-18 09:59:51.582747] 16924 PROC Child 17206 exited (convert_job)
[2012-01-18 09:59:51.583274] 16924 DEBUG Registering signals for child
[2012-01-18 09:59:51.583572] 17245 WORKER Adding server 127.0.0.1
[2012-01-18 09:59:51.583707] 17245 WORKER Adding job convert_job
[2012-01-18 09:59:51.583962] 16924 PROC Started child 17245 (convert_job)
[2012-01-18 09:59:51.584556] 17245 WORKER (H:localhost.local:39) Starting Job: convert_job
[2012-01-18 09:59:51.584593] 17245 DEBUG (H:localhost.local:39) Workload: cd8ca87a85ad53b5d34b1c0dd835a718ac9fcaa5
[2012-01-18 09:59:51.584619] 17245 DEBUG (H:localhost.local:39) Calling function for convert_job.
[2012-01-18 09:59:51.584685] 17245 WORKER (H:localhost.local:39) convert requested
[2012-01-18 09:59:51.584732] 17245 DEBUG (H:localhost.local:39)
[2012-01-18 10:00:30.311528] 16924 PROC Child 17245 exited (convert_job)
[2012-01-18 10:00:30.312212] 16924 DEBUG Registering signals for child
[2012-01-18 10:00:30.312675] 17300 WORKER Adding server 127.0.0.1
[2012-01-18 10:00:30.312872] 17300 WORKER Adding job convert_job
[2012-01-18 10:00:30.313160] 16924 PROC Started child 17300 (convert_job)
[2012-01-18 10:00:30.313908] 17300 WORKER (H:localhost.local:40) Starting Job: convert_job
[2012-01-18 10:00:30.314267] 17300 DEBUG (H:localhost.local:40) Workload: 10e7b7ae31577fad6ba4e7eb0be5726b27a98434
[2012-01-18 10:00:30.314312] 17300 DEBUG (H:localhost.local:40) Calling function for convert_job.
[2012-01-18 10:00:30.314378] 17300 WORKER (H:localhost.local:40) convert requested
[2012-01-18 10:00:30.314593] 17300 DEBUG (H:localhost.local:40)