You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dstandish (via GitHub)" <gi...@apache.org> on 2023/06/07 08:28:34 UTC
[GitHub] [airflow] dstandish commented on a diff in pull request #31712: feat(operator): add deferrable attribute to base operator
dstandish commented on code in PR #31712:
URL: https://github.com/apache/airflow/pull/31712#discussion_r1221145861
##########
airflow/providers/microsoft/azure/sensors/wasb.py:
##########
@@ -26,6 +26,13 @@
from airflow.providers.microsoft.azure.triggers.wasb import WasbBlobSensorTrigger, WasbPrefixSensorTrigger
from airflow.sensors.base import BaseSensorOperator
+try:
+ from airflow.models.abstractoperator import DEFAULT_DEFERRABLE
+except ImportError:
+ from airflow.configuration import conf
+
+ DEFAULT_DEFERRABLE = conf.getboolean("operators", "default_deferrable", fallback=False)
+
Review Comment:
it's probably a good idea to add a `todo` for each of these saying to remove this compat logic when provider min version >= airlfow 2.7.0
--
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