# HG changeset patch # User Marcin Kuzminski # Date 1285704475 0 # Node ID 9bedaa073c23d664edd8bccabbbdaed495857b4c # Parent b50e79b4257ac4bafa02aff22cd8f64971fad711 fixed lockdecrator to return executed function data removed print diff -r b50e79b4257a -r 9bedaa073c23 pylons_app/controllers/summary.py --- a/pylons_app/controllers/summary.py Tue Sep 28 19:53:52 2010 +0000 +++ b/pylons_app/controllers/summary.py Tue Sep 28 20:07:55 2010 +0000 @@ -95,7 +95,6 @@ key=lambda k: k[1])[:2] ) ) - print c.trending_languages else: c.commit_data = json.dumps({}) c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 0] ]) diff -r b50e79b4257a -r 9bedaa073c23 pylons_app/lib/celerylib/__init__.py --- a/pylons_app/lib/celerylib/__init__.py Tue Sep 28 19:53:52 2010 +0000 +++ b/pylons_app/lib/celerylib/__init__.py Tue Sep 28 20:07:55 2010 +0000 @@ -42,8 +42,9 @@ log.info('running task with lockkey %s', lockkey) try: l = DaemonLock(lockkey) - func(*fargs, **fkwargs) + ret = func(*fargs, **fkwargs) l.release() + return ret except LockHeld: log.info('LockHeld') return 'Task with key %s already running' % lockkey