You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/06/17 20:56:03 UTC

[GitHub] [airflow] dstandish commented on a diff in pull request #24496: Add `db+` prefix if missing for celery result backend

dstandish commented on code in PR #24496:
URL: https://github.com/apache/airflow/pull/24496#discussion_r900495836


##########
airflow/config_templates/default_celery.py:
##########
@@ -36,6 +36,14 @@ def _broker_supports_visibility_timeout(url):
     if _broker_supports_visibility_timeout(broker_url):
         broker_transport_options['visibility_timeout'] = 21600
 
+result_backend = str(conf.get('celery', 'RESULT_BACKEND'))
+if result_backend.startswith(('postgresql://', 'sqlite:///', 'mysql://')):

Review Comment:
   we also support mssql: `mssql+pyodbc://`
   and legacy postgres scheme (for older version of sqlalchemy) is i think `postgres://`



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org