Skip to content

Instantly share code, notes, and snippets.

@hjr3
Created August 20, 2011 09:36
Show Gist options
  • Save hjr3/1158907 to your computer and use it in GitHub Desktop.
Save hjr3/1158907 to your computer and use it in GitHub Desktop.
gearmand exception handling
INFO [ main ] Accepted connection from 127.0.0.1:38684
INFO [ 2 ] Received CON wakeup event
DEBUG [ 2 ] Received OPTION_REQ 127.0.0.1:525643377 -> libgearman-server/thread.c:294
DEBUG [ proc ] 'exceptions' -> libgearman-server/server.c:360
DEBUG [ 2 ] Received RUN wakeup event -> libgearman-server/gearmand_thread.cc:409
DEBUG [ 2 ] Sent OPTION_RES to 127.0.0.1:525643377 -> libgearman-server/thread.c:339
DEBUG [ 2 ] Received CAN_DO 127.0.0.1:525643377 -> libgearman-server/thread.c:294
DEBUG [ 2 ] Received GEARMAN_COMMAND_GRAB_JOB_ALL 127.0.0.1:525643377 -> libgearman-server/thread.c:294
DEBUG [ proc ] Jobs available 0 -> libgearman-server/job.c:462
DEBUG [ 2 ] Received RUN wakeup event -> libgearman-server/gearmand_thread.cc:409
DEBUG [ 2 ] Sent NO_JOB to 127.0.0.1:525643377 -> libgearman-server/thread.c:339
DEBUG [ 2 ] Received PRE_SLEEP 127.0.0.1:525643377 -> libgearman-server/thread.c:294
INFO [ main ] Accepted connection from 127.0.0.1:38685
INFO [ 1 ] Received CON wakeup event
DEBUG [ 1 ] Received OPTION_REQ 127.0.0.1:525645297 -> libgearman-server/thread.c:294
DEBUG [ proc ] 'exceptions' -> libgearman-server/server.c:360
DEBUG [ 1 ] Received RUN wakeup event -> libgearman-server/gearmand_thread.cc:409
DEBUG [ 1 ] Sent OPTION_RES to 127.0.0.1:525645297 -> libgearman-server/thread.c:339
DEBUG [ 1 ] Received SUBMIT_JOB 127.0.0.1:525645297 -> libgearman-server/thread.c:294
DEBUG [ proc ] Received submission, test/8c0156d5-96c0-4c3e-9775-8268944b42d2 with 2 arguments -> libgearman-server/server.c:220
DEBUG [ 2 ] Received RUN wakeup event -> libgearman-server/gearmand_thread.cc:409
DEBUG [ 2 ] Sent NOOP to 127.0.0.1:525643377 -> libgearman-server/thread.c:339
DEBUG [ 1 ] Received RUN wakeup event -> libgearman-server/gearmand_thread.cc:409
DEBUG [ 1 ] Sent JOB_CREATED to 127.0.0.1:525645297 -> libgearman-server/thread.c:339
DEBUG [ 2 ] Received GEARMAN_COMMAND_GRAB_JOB_ALL 127.0.0.1:525643377 -> libgearman-server/thread.c:294
DEBUG [ proc ] Jobs available 1 -> libgearman-server/job.c:462
DEBUG [ proc ] Sending reduce submission, Partitioner: test(4) Reducer: (0) Unique: 8c0156d5-96c0-4c3e-9775-8268944b42d2(36) with data sized (4) -> libgearman-server/server.c:463
DEBUG [ 2 ] Received RUN wakeup event -> libgearman-server/gearmand_thread.cc:409
DEBUG [ 2 ] Sent GEARMAN_COMMAND_JOB_ASSIGN_ALL to 127.0.0.1:525643377 -> libgearman-server/thread.c:339
DEBUG [ 2 ] Received WORK_EXCEPTION 127.0.0.1:525643377 -> libgearman-server/thread.c:294
DEBUG [ 2 ] Received WORK_FAIL 127.0.0.1:525643377 -> libgearman-server/thread.c:294
DEBUG [ proc ] Sending GEARMAN_COMMAND_WORK_EXCEPTION -> libgearman-server/server.c:1188
DEBUG [ 1 ] Received RUN wakeup event -> libgearman-server/gearmand_thread.cc:409
DEBUG [ 1 ] Sent WORK_EXCEPTION to 127.0.0.1:525645297 -> libgearman-server/thread.c:339
DEBUG [ 1 ] Sent WORK_FAIL to 127.0.0.1:525645297 -> libgearman-server/thread.c:339
ERROR [ 2 ] lost connection to client recv(peer has closed connection) 127.0.0.1:38684 -> libgearman-server/io.cc:607
INFO [ 2 ] Disconnected 127.0.0.1:38684
DEBUG [ 2 ] Received RUN wakeup event -> libgearman-server/gearmand_thread.cc:409
ERROR [ 1 ] lost connection to client recv(peer has closed connection) 127.0.0.1:38685 -> libgearman-server/io.cc:607
INFO [ 1 ] Disconnected 127.0.0.1:38685
DEBUG [ 1 ] Received RUN wakeup event -> libgearman-server/gearmand_thread.cc:409
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment