uranusjr commented on code in PR #31028:
URL: https://github.com/apache/airflow/pull/31028#discussion_r1209011354


##########
airflow/config_templates/default_celery.py:
##########
@@ -38,16 +39,17 @@ def _broker_supports_visibility_timeout(url):
     if _broker_supports_visibility_timeout(broker_url):
         broker_transport_options["visibility_timeout"] = 21600
 
-broker_transport_options_for_celery: dict = dict.copy(broker_transport_options)
+broker_transport_options_for_celery: dict = broker_transport_options.copy()
 if "sentinel_kwargs" in broker_transport_options:
     try:
-        sentinel_kwargs = conf.getjson("celery_broker_transport_options", 
"sentinel_kwargs")
+        sentinel_kwargs = broker_transport_options.get("sentinel_kwargs")
         if not isinstance(sentinel_kwargs, dict):
             raise ValueError
         broker_transport_options_for_celery["sentinel_kwargs"] = 
sentinel_kwargs
     except Exception:
         raise AirflowException("sentinel_kwargs should be written in the 
correct dictionary format.")
 
+

Review Comment:
   ```suggestion
   ```



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

Reply via email to