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 2012/12/04 15:11:32 UTC
git commit: [#5381] correctly implement check_running so that it
wraps a "waitfunc" instead of returning a value immediately
Updated Branches:
refs/heads/master e13fd3368 -> e7754c5c0
[#5381] correctly implement check_running so that it wraps a "waitfunc" instead of returning a value immediately
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/e7754c5c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e7754c5c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e7754c5c
Branch: refs/heads/master
Commit: e7754c5c0ea7518923cfd9a7d827bdb5e6dc44cb
Parents: e13fd33
Author: Dave Brondsema <db...@geek.net>
Authored: Fri Nov 30 22:49:31 2012 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Tue Dec 4 14:11:01 2012 +0000
----------------------------------------------------------------------
Allura/allura/command/taskd.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e7754c5c/Allura/allura/command/taskd.py
----------------------------------------------------------------------
diff --git a/Allura/allura/command/taskd.py b/Allura/allura/command/taskd.py
index f9bd6ef..947b6fd 100644
--- a/Allura/allura/command/taskd.py
+++ b/Allura/allura/command/taskd.py
@@ -77,10 +77,12 @@ class TaskdCommand(base.Command):
time.sleep(poll_interval)
def check_running(func):
- if self.keep_running:
- return func()
- else:
- return None
+ def waitfunc_checks_running():
+ if self.keep_running:
+ return func()
+ else:
+ return None
+ return waitfunc_checks_running
if pylons.g.amq_conn:
waitfunc = waitfunc_amqp