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.
|
||||
"""
|
||||
now = datetime.now()
|
||||
available_or_expired = (QueueItem.available == True |
|
||||
QueueItem.processing_expires <= now)
|
||||
available_or_expired = ((QueueItem.available == True) |
|
||||
(QueueItem.processing_expires <= now))
|
||||
|
||||
# TODO the query and the update should be atomic, but for now we only
|
||||
# have one worker.
|
||||
|
|
Reference in a new issue