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/ 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


Question information

English Edit question
Gearman Edit question
No assignee Edit question
Last query:
Last reply:
Launchpad Janitor (janitor) said : #1

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