kaxil commented on code in PR #45583:
URL: https://github.com/apache/airflow/pull/45583#discussion_r1914700179


##########
airflow/api_fastapi/execution_api/datamodels/taskinstance.py:
##########
@@ -165,6 +168,24 @@ class TaskInstance(BaseModel):
     try_number: int
     map_index: int | None = None
 
+    max_tries: int
+    pool_slots: int
+    queue: str
+    priority_weight: int
+
+    # TODO: Task-SDK: Can we replace TaskInstanceKey with just the uuid across 
the codebase?
+    @property
+    def key(self) -> TaskInstanceKey:

Review Comment:
   aah removed, I was playing around with consolidating 
`airflow/executors/workloads.py:TaskInstance`:
   
   
https://github.com/apache/airflow/blob/d200f9a0fac6caa77ede1d70fc96bc7acebb45a8/airflow/executors/workloads.py#L42-L68



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