dabla commented on code in PR #37937:
URL: https://github.com/apache/airflow/pull/37937#discussion_r1514445180
##########
airflow/models/baseoperator.py:
##########
@@ -364,6 +366,23 @@ def partial(
)
+def executor_safeguard():
+ def decorator(func):
+ def wrapper(*args, **kwargs):
+ unit_test_mode = os.getenv("AIRFLOW__CORE__UNIT_TEST_MODE",
"False").casefold() == "true"
+ if unit_test_mode:
Review Comment:
Thank you for the suggestion that is indeed a lot cleaner :)
--
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]