dabla commented on code in PR #37937:
URL: https://github.com/apache/airflow/pull/37937#discussion_r1514459241
##########
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:
Applied suggestion but kept the local unit_test_mode variable which makes it
easier to debug
--
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]