uranusjr commented on code in PR #56066:
URL: https://github.com/apache/airflow/pull/56066#discussion_r2674740836


##########
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:
   I don’t like this. Instead of a separate context manager, I feel this should 
simply be a part of `DAG`, so when you do `with DAG(...)` it automatically 
handles things for you.



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