eladkal commented on code in PR #51412:
URL: https://github.com/apache/airflow/pull/51412#discussion_r2127486358


##########
providers/amazon/src/airflow/providers/amazon/aws/operators/ecs.py:
##########
@@ -517,7 +517,7 @@ def execute(self, context):
         if self.reattach:
             # Generate deterministic UUID which refers to unique 
TaskInstanceKey
             ti: TaskInstance = context["ti"]
-            self._started_by = generate_uuid(*map(str, ti.key.primary))
+            self._started_by = generate_uuid(*map(str, [ti.dag_id, 
ti.map_index, ti.run_id, ti.task_id]))

Review Comment:
   Does this work for both Airflow 2 and 3?
   Asking as the issue reported problems only with Airflow 3 so I wonder if the 
fix is for both or needs to be under version flag?



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