celery: fixed error when celery was disabled
This commit is contained in:
parent
faa449987b
commit
446b48dea6
1 changed files with 1 additions and 1 deletions
|
|
@ -49,8 +49,8 @@ def run_task(task, *args, **kwargs):
|
|||
|
||||
exec_mode = 'sync'
|
||||
|
||||
t = None
|
||||
if rhodecode.CELERY_ENABLED:
|
||||
t = None
|
||||
try:
|
||||
t = task.apply_async(args=args, kwargs=kwargs)
|
||||
log.debug('executing task %s:%s in async mode', t.task_id, task)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue