jscheffl commented on code in PR #43737:
URL: https://github.com/apache/airflow/pull/43737#discussion_r1852853799


##########
providers/src/airflow/providers/edge/executors/edge_executor.py:
##########
@@ -74,6 +110,12 @@ def execute_async(
         session: Session = NEW_SESSION,
     ) -> None:
         """Execute asynchronously."""
+        # Use of a hacky trick to get task instance, will be changed with 
Airflow 3.0.0
+        # code works together with _process_tasks overwrite to get task 
instance.
+        task_instance = self.edge_queued_tasks[key][3]  # TaskInstance in 
fourth element
+        del self.edge_queued_tasks[key]
+        task_instance.pool_slots

Review Comment:
   I think this is a leftover and can be removed.
   ```suggestion
   ```



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