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/02/28 23:38:00 UTC

[GitHub] [airflow] jedcunningham commented on a change in pull request #21880: Minor cleanup on Celery config

jedcunningham commented on a change in pull request #21880:
URL: https://github.com/apache/airflow/pull/21880#discussion_r816335004



##########
File path: airflow/config_templates/default_celery.py
##########
@@ -39,16 +39,16 @@ def _broker_supports_visibility_timeout(url):
 DEFAULT_CELERY_CONFIG = {
     'accept_content': ['json'],
     'event_serializer': 'json',
-    'worker_prefetch_multiplier': conf.getint('celery', 'worker_prefetch_multiplier', fallback=1),
+    'worker_prefetch_multiplier': conf.getint('celery', 'worker_prefetch_multiplier'),

Review comment:
       Airflow falls back to the defaults shipped with it, so even if they don't have it, when this code lands it'll still end up being 1.




-- 
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