Shlomit-B commented on code in PR #56066:
URL: https://github.com/apache/airflow/pull/56066#discussion_r2683289623


##########
task-sdk/src/airflow/sdk/definitions/dag.py:
##########
@@ -1576,3 +1582,79 @@ def factory(*args, **kwargs):
         return wrapper(dag_id_or_func)
 
     return wrapper
+
+
+@contextmanager
+def safe_dag():

Review Comment:
   A DAG can fail in two places: during construction or inside the DAG body. I 
didn’t find a way to handle constructor failures inside the DAG itself, so 
safe_dag() as an external wrapper seemed needed.



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