dominikhei commented on issue #51429:
URL: https://github.com/apache/airflow/issues/51429#issuecomment-2944144397

   The issue seems to be 
[here](https://github.com/apache/airflow/blob/main/providers/amazon/src/airflow/providers/amazon/aws/operators/ecs.py#L633):
   
   ```python
   if not self.container_name:
       self.container_name = response["tasks"][0]["containers"][0]["name"]
   ```
   If I understand it correctly `ECS.Client.run_task(**kwargs)` does not 
guarantee that all information is returned as the task might not be in the 
`ACTIVE` state yet. Maybe we should add a little delay and poll the name using 
`describe_task`. In the official docs it also states that the Amazon ECS API 
follows an eventual consistency model


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