You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/02/08 23:23:00 UTC

git commit: [#5705] Because Dave wanted to save the 1ms

Updated Branches:
  refs/heads/tv/5705 c66d90b33 -> f0bc403be


[#5705] Because Dave wanted to save the 1ms


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/f0bc403b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/f0bc403b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/f0bc403b

Branch: refs/heads/tv/5705
Commit: f0bc403be479d931f319aeab9d764b629aa480a4
Parents: c66d90b
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Fri Feb 8 22:22:41 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Fri Feb 8 22:22:41 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/monq_model.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f0bc403b/Allura/allura/model/monq_model.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/monq_model.py b/Allura/allura/model/monq_model.py
index 3ec5e77..02852b0 100644
--- a/Allura/allura/model/monq_model.py
+++ b/Allura/allura/model/monq_model.py
@@ -166,7 +166,7 @@ class MonQTask(MappedClass):
         while True:
             try:
                 query = dict(state=state)
-                query['time_queue'] = {'$lt': datetime.utcnow()}
+                query['time_queue'] = {'$lte': datetime.utcnow()}
                 if only:
                     query['task_name'] = {'$in': only}
                 obj = cls.query.find_and_modify(