allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#5961] Added "skipped" state for tasks
Date Wed, 03 Apr 2013 15:04:52 GMT
Updated Branches:
  refs/heads/cj/5961 [created] 2daf81712


[#5961] Added "skipped" state for tasks

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


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

Branch: refs/heads/cj/5961
Commit: 2daf81712759624c0bd92a3c3602b9a5880d067d
Parents: 7d53aac
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Wed Apr 3 15:04:33 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Wed Apr 3 15:04:33 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2daf8171/Allura/allura/model/monq_model.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/monq_model.py b/Allura/allura/model/monq_model.py
index bdb1d90..a97f16f 100644
--- a/Allura/allura/model/monq_model.py
+++ b/Allura/allura/model/monq_model.py
@@ -24,7 +24,7 @@ class MonQTask(MappedClass):
     Properties
 
         - _id - bson.ObjectId() for this task
-        - state - 'ready', 'busy', 'error', or 'complete' task status
+        - state - 'ready', 'busy', 'error', 'complete', or 'skipped' task status
         - priority - integer priority, higher is more priority
         - result_type - either 'keep' or 'forget', what to do with the task when
           it's done
@@ -38,7 +38,7 @@ class MonQTask(MappedClass):
         - kwargs - **kwargs to be sent to the task function
         - result - if the task is complete, the return value. If in error, the traceback.
     '''
-    states = ('ready', 'busy', 'error', 'complete')
+    states = ('ready', 'busy', 'error', 'complete', 'skipped')
     result_types = ('keep', 'forget')
     class __mongometa__:
         session = task_orm_session


Mime
View raw message