jedcunningham commented on code in PR #32099:
URL: https://github.com/apache/airflow/pull/32099#discussion_r1240592248


##########
airflow/models/baseoperator.py:
##########
@@ -1001,6 +1001,14 @@ def __enter__(self):
     def __exit__(self, exc_type, exc_val, exc_tb):
         SetupTeardownContext.set_work_task_roots_and_leaves()
 
+    @staticmethod
+    def add_ctx_task(task):

Review Comment:
   I'm a little torn on this name. Maybe `add_task_to_ctx`?
   
   Are we planning on doing the same thing for adding tasks to a TaskGroup?
   
   Can we check that this isn't being used outside a context manager?



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to