Browse Source

dont block on manager job queue

pull/1/head
Brett Langdon 11 years ago
parent
commit
cefffb780e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      qw/client.py

+ 1
- 1
qw/client.py View File

@ -45,7 +45,7 @@ class Client(redis.StrictRedis):
# 3) try to grab a job from the pool of all jobs
job_id = (
self.lpop(self.WORKER_JOBS % (worker, )) or
self.brpoplpush(self.MANAGER_JOBS % (manager, ), self.WORKER_JOBS % (worker, )) or
self.rpoplpush(self.MANAGER_JOBS % (manager, ), self.WORKER_JOBS % (worker, )) or
self.brpoplpush(self.ALL_JOBS, self.WORKER_JOBS % (worker, ), timeout=timeout)
)


Loading…
Cancel
Save