josh-fell commented on code in PR #31028:
URL: https://github.com/apache/airflow/pull/31028#discussion_r1183158686
##########
airflow/config_templates/default_celery.py:
##########
@@ -26,7 +26,7 @@
def _broker_supports_visibility_timeout(url):
- return url.startswith("redis://") or url.startswith("sqs://")
+ return url.startswith("redis://") or url.startswith("rediss://") or
url.startswith("sqs://")
Review Comment:
```suggestion
return url.startswith(("redis://", "rediss://", "sqs://"))
```
You can pass a tuple of strings in `.startswith()`. This will then return
True if `url` starts with _any_ of those string values.
--
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]