Show More
@@ -63,10 +63,6 b' def run_task(task, *args, **kwargs):' | |||||
63 | "Exception while trying to run task asynchronous. " |
|
63 | "Exception while trying to run task asynchronous. " | |
64 | "Fallback to sync execution.") |
|
64 | "Fallback to sync execution.") | |
65 |
|
65 | |||
66 | # keep in mind there maybe a subtle race condition where something |
|
|||
67 | # depending on rhodecode.CELERY_ENABLED |
|
|||
68 | # will see CELERY_ENABLED as True before this has a chance to set False |
|
|||
69 | rhodecode.CELERY_ENABLED = celery_is_up |
|
|||
70 | else: |
|
66 | else: | |
71 | log.debug('executing task %s:%s in sync mode', 'TASK', task) |
|
67 | log.debug('executing task %s:%s in sync mode', 'TASK', task) | |
72 |
|
68 |
General Comments 0
You need to be logged in to leave comments.
Login now