uranusjr commented on code in PR #24496:
URL: https://github.com/apache/airflow/pull/24496#discussion_r902221995
##########
airflow/config_templates/default_celery.py:
##########
@@ -36,6 +36,12 @@ def _broker_supports_visibility_timeout(url):
if _broker_supports_visibility_timeout(broker_url):
broker_transport_options['visibility_timeout'] = 21600
+if conf.has_option("celery", 'RESULT_BACKEND'):
+ result_backend = str(conf.get('celery', 'RESULT_BACKEND'))
+else:
+ log.info("Value for celery result_backend not found. Using
sql_alchemy_conn with db+ prefix.")
+ result_backend = f'db+{conf.get("database", "SQL_ALCHEMY_CONN")}'
Review Comment:
Let’s put this into a function. Logging on import time can be problematic
due to startup order.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]