##// END OF EJS Templates
in case we turn on celery, and connection fails, set the global flag CELERY_ON to false, helps with odd...
marcink -
r3427:d77d9ff1 beta
parent child Browse files
Show More
@@ -68,6 +68,8 b' def run_task(task, *args, **kwargs):'
68 except socket.error, e:
68 except socket.error, e:
69 if isinstance(e, IOError) and e.errno == 111:
69 if isinstance(e, IOError) and e.errno == 111:
70 log.debug('Unable to connect to celeryd. Sync execution')
70 log.debug('Unable to connect to celeryd. Sync execution')
71 global CELERY_ON
72 CELERY_ON = False
71 else:
73 else:
72 log.error(traceback.format_exc())
74 log.error(traceback.format_exc())
73 except KeyError, e:
75 except KeyError, e:
General Comments 0
You need to be logged in to leave comments. Login now