Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem with Gearman 0.32 (ppa:gearman-developers/ppa)- it doesn't save queue in Postgres for queue persistence.

  • Gearman is running, I can add jobs (example with DEBUG verbosity on pastebin for better readability: )
  • Postgres connection string is OK - I managed to login/access db using same data from same host
  • Gearman connects to Postgres - if queue table doesn't exist in DB it creates it.

And despite all that NOTHING is added to DB. I have 0 workers registered and as I add new jobs to queue they get queued, but never saved in persistent storage.

share|improve this question
up vote 1 down vote accepted

Found the problem:

When using Pecl Gearman extension tasks added using GearmanClient::addTask (and high/low priority variants of the function) will be added to Gearman job queue, but not saved to database if PHP script times out before GearmanClient::runTasks returns result.

Use GearmanClient::addTaskBackground instead.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.