incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [2/29] git commit: [#5381] correctly implement check_running so that it wraps a "waitfunc" instead of returning a value immediately
Date Tue, 04 Dec 2012 14:26:14 GMT
[#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/tv/5382
Commit: e7754c5c0ea7518923cfd9a7d827bdb5e6dc44cb
Parents: e13fd33
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Fri Nov 30 22:49:31 2012 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@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


Mime
View raw message