You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2012/11/30 23:50:11 UTC
git commit: [#5381] correctly implement check_running so that it
wraps a "waitfunc" instead of returning a value immediately
Updated Branches:
refs/heads/db/5381 [created] 35ef5f08b
[#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/35ef5f08
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/35ef5f08
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/35ef5f08
Branch: refs/heads/db/5381
Commit: 35ef5f08b8e6b26325b77eaf79fad3da4f3b6de5
Parents: 7bed302
Author: Dave Brondsema <db...@geek.net>
Authored: Fri Nov 30 22:49:31 2012 +0000
Committer: Dave Brondsema <db...@geek.net>
Committed: Fri Nov 30 22:49:31 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/35ef5f08/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