pmalafosse opened a new issue #17038:
URL: https://github.com/apache/airflow/issues/17038
**Description**
Currently when the ECSOperator fails because the ECS task is not in
'success' state it returns a generic message like that in Airflow alerts that
doesn't have much value when we want to debug things quickly.
`This task is not in success state {<huge JSON from AWS containing all the
ECS task details>}`
**Use case / motivation**
The idea would be to return instead the last lines of logs from Cloudwatch
(that are printed above in Airflow logs) so when we receive the alert we know
what failed in the ECS task instead of having to go to Airflow logs to find it.
This feature would involve changes there I think:
-
https://github.com/apache/airflow/blob/2ce6e8de53adc98dd3ae80fa7c74b38eb352bc3a/airflow/providers/amazon/aws/operators/ecs.py#L354
-
https://github.com/apache/airflow/blob/2ce6e8de53adc98dd3ae80fa7c74b38eb352bc3a/airflow/providers/amazon/aws/operators/ecs.py#L375
--
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]