GearmanClient error - queue_insert_error
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
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