You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/04/03 17:04:52 UTC
git commit: [#5961] Added "skipped" state for tasks
Updated Branches:
refs/heads/cj/5961 [created] 2daf81712
[#5961] Added "skipped" state for tasks
Signed-off-by: Cory Johns <cj...@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 <cj...@slashdotmedia.com>
Authored: Wed Apr 3 15:04:33 2013 +0000
Committer: Cory Johns <cj...@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