AryanK1511 commented on issue #51429: URL: https://github.com/apache/airflow/issues/51429#issuecomment-2946953529
> The issue seems to be [here](https://github.com/apache/airflow/blob/main/providers/amazon/src/airflow/providers/amazon/aws/operators/ecs.py#L633): > > 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_tasks` if it's not set. We could also make it a required parameter, although it needs to be unique per ECS task definition. > > [@eladkal](https://github.com/eladkal) [@o-nikolas](https://github.com/o-nikolas) What do you think? This discussion seems super exciting. I am more than willing to pick issue up once you guys decide on the solution that you want to opt. -- 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]
