o-nikolas commented on code in PR #51412:
URL: https://github.com/apache/airflow/pull/51412#discussion_r2127573756
##########
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:
It should be backwards compatible, since a true TaskInstance model object
also has those fields (which were previously being fetch from the primary key).
But I can do some manual UAT to double check.
--
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]