##// END OF EJS Templates
celery: fixed error when celery was disabled
super-admin -
r4817:753f56fc default
parent child Browse files
Show More
@@ -49,8 +49,8 b' def run_task(task, *args, **kwargs):'
49
49
50 exec_mode = 'sync'
50 exec_mode = 'sync'
51
51
52 t = None
52 if rhodecode.CELERY_ENABLED:
53 if rhodecode.CELERY_ENABLED:
53 t = None
54 try:
54 try:
55 t = task.apply_async(args=args, kwargs=kwargs)
55 t = task.apply_async(args=args, kwargs=kwargs)
56 log.debug('executing task %s:%s in async mode', t.task_id, task)
56 log.debug('executing task %s:%s in async mode', t.task_id, task)
General Comments 0
You need to be logged in to leave comments. Login now