##// END OF EJS Templates
fix(celery): fixed celery logging error about the missing keys for ini options
super-admin -
r5244:5dc4258b default
parent child Browse files
Show More
@@ -118,7 +118,12 b" celery_app.user_options['preload'].add(p"
118
118
119 @signals.setup_logging.connect
119 @signals.setup_logging.connect
120 def setup_logging_callback(**kwargs):
120 def setup_logging_callback(**kwargs):
121 ini_file = celery_app.conf['RC_INI_FILE']
121
122 if 'RC_INI_FILE' in celery_app.conf:
123 ini_file = celery_app.conf['RC_INI_FILE']
124 else:
125 ini_file = celery_app.user_options['RC_INI_FILE']
126
122 setup_logging(ini_file)
127 setup_logging(ini_file)
123
128
124
129
@@ -137,7 +142,11 b' def on_preload_parsed(options, **kwargs)'
137 options = parse_ini_vars(ini_vars)
142 options = parse_ini_vars(ini_vars)
138
143
139 celery_app.conf['RC_INI_FILE'] = ini_file
144 celery_app.conf['RC_INI_FILE'] = ini_file
145 celery_app.user_options['RC_INI_FILE'] = ini_file
146
140 celery_app.conf['RC_INI_OPTIONS'] = options
147 celery_app.conf['RC_INI_OPTIONS'] = options
148 celery_app.user_options['RC_INI_OPTIONS'] = options
149
141 setup_logging(ini_file)
150 setup_logging(ini_file)
142
151
143
152
General Comments 0
You need to be logged in to leave comments. Login now