Gearman Server and Client Libraries

GearmanClient error - queue_insert_error

Asked by Arthur R on 2012-12-03

From time to time when I try to add a background job (using gearman persistent storage --queue-type=MySQL) from php I get the error below

Warning: GearmanClient::doBackground() [gearmanclient.dobackground]: _client_run_tasks(GEARMAN_SERVER_ERROR) queue_insert_error:QUEUE_ERROR -> libgearman/client.cc:1504 in /.../test.php on line 60
bad return code!

If I run the job again it will work (if I run it for several times it will work but if there is a delay of 1m or so it will raise the error again), this looks like a mysql connection issue - maybe this is caused by the mysql wait_timeout of 10 seconds that we are using in my.cnf?

If I disable persistent storage everything works just fine

Let me know if I need to look into something else

Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Gearman Edit question
Assignee:
No assignee Edit question
Last query:
2012-12-03
Last reply:
2012-12-19
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.