Taragolis commented on code in PR #37937:
URL: https://github.com/apache/airflow/pull/37937#discussion_r1514413603


##########
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:
   ```suggestion
               if conf.getboolean("core", "unit_test_mode"):
   ```



##########
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:
   I'm not sure about `unit_test_mode` maybe we need separate parameter for that



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