Fix a bug in the queue query.
This commit is contained in:
parent
cf1b545dee
commit
f80c9255e8
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ class WorkQueue(object):
|
||||||
minutes.
|
minutes.
|
||||||
"""
|
"""
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
available_or_expired = (QueueItem.available == True |
|
available_or_expired = ((QueueItem.available == True) |
|
||||||
QueueItem.processing_expires <= now)
|
(QueueItem.processing_expires <= now))
|
||||||
|
|
||||||
# TODO the query and the update should be atomic, but for now we only
|
# TODO the query and the update should be atomic, but for now we only
|
||||||
# have one worker.
|
# have one worker.
|
||||||
|
|
Reference in a new issue