Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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: http://pastebin.com/3uRds4yi )
  • 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

1 Answer 1

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.