diff pylons_app/lib/celerylib/__init__.py @ 506:d5efb83590ef

fixed lock decorator bug which didn't release the lock after func execution and rewrote the pidlock a little with Ask Solem suggestions! added tredning languages stats
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 27 Sep 2010 02:17:03 +0200
parents ac32a026c306
children 9bedaa073c23
line wrap: on
line diff
--- a/pylons_app/lib/celerylib/__init__.py	Sat Sep 25 23:36:10 2010 +0200
+++ b/pylons_app/lib/celerylib/__init__.py	Mon Sep 27 02:17:03 2010 +0200
@@ -42,7 +42,7 @@
         log.info('running task with lockkey %s', lockkey)
         try:
             l = DaemonLock(lockkey)
-            return func(*fargs, **fkwargs)
+            func(*fargs, **fkwargs)
             l.release()
         except LockHeld:
             log.info('LockHeld')