Changeset - 9bedaa073c23
[Not reviewed]
default
0 2 0
Marcin Kuzminski - 15 years ago 2010-09-28 22:07:55
marcin@python-works.com
fixed lockdecrator to return executed function data
removed print
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pylons_app/controllers/summary.py
Show inline comments
 
@@ -95,7 +95,6 @@ class SummaryController(BaseController):
 
                                            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] ])
pylons_app/lib/celerylib/__init__.py
Show inline comments
 
@@ -42,8 +42,9 @@ def locked_task(func):
 
        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   
0 comments (0 inline, 0 general)