Show More
@@ -95,7 +95,6 b' class SummaryController(BaseController):' | |||||
95 | key=lambda k: k[1])[:2] |
|
95 | key=lambda k: k[1])[:2] | |
96 | ) |
|
96 | ) | |
97 | ) |
|
97 | ) | |
98 | print c.trending_languages |
|
|||
99 | else: |
|
98 | else: | |
100 | c.commit_data = json.dumps({}) |
|
99 | c.commit_data = json.dumps({}) | |
101 | c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 0] ]) |
|
100 | c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 0] ]) |
@@ -42,8 +42,9 b' def locked_task(func):' | |||||
42 | log.info('running task with lockkey %s', lockkey) |
|
42 | log.info('running task with lockkey %s', lockkey) | |
43 | try: |
|
43 | try: | |
44 | l = DaemonLock(lockkey) |
|
44 | l = DaemonLock(lockkey) | |
45 | func(*fargs, **fkwargs) |
|
45 | ret = func(*fargs, **fkwargs) | |
46 | l.release() |
|
46 | l.release() | |
|
47 | return ret | |||
47 | except LockHeld: |
|
48 | except LockHeld: | |
48 | log.info('LockHeld') |
|
49 | log.info('LockHeld') | |
49 | return 'Task with key %s already running' % lockkey |
|
50 | return 'Task with key %s already running' % lockkey |
General Comments 0
You need to be logged in to leave comments.
Login now