New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EcsRunTaskOperator does not send logs if task times out #39026
Comments
May I handle this issue? |
Feel free. |
Hi @slycyberguy , are you still handling this issue? I am also interested in it, in case you need any help. |
Hi. Yeah, I'm working on it. I should be done in a few more days. I'll let you know if anything changes. Thanks for offering. |
Hi @mateuslatrova. It looks like I'm getting overwhelmed at work with a lot of things that require high priority at the moment. I think I might be free to work on it next week, but I don't want this sitting around for too long. So if you still want, you can take over the issue. I'm unassigning myself. |
Hi @slycyberguy ! Right now I am focused on another issue. If I finish it before anyone takes this one over, I will let everyone know that I will work on it. Thanks for letting me know! |
Apache Airflow Provider(s)
amazon
Versions of Apache Airflow Providers
apache-airflow-providers-amazon==8.7.1
Apache Airflow version
2.7.2
Operating System
Amazon Linux AMI
Deployment
Amazon (AWS) MWAA
Deployment details
We are deploying MWAA using CDK.
Dags are located in S3.
What happened
We are running several Airflow tasks that start ECS containers and wait for their completion before starting the following tasks. I noticed that logs only appear upon the completion of the task.
However, if a task runs into a TimeoutError in Airflow, no task logs are created at all in Cloudwatch.
I have been in contact with AWS Enterprise Support but they are saying that the issue is located in the Operator and not MWAA.
What you think should happen instead
ECS task logs are written to CloudWatch even if the Airflow task fails.
Even better: task logs are written continuously to CloudWatch.
How to reproduce
Anything else
Logs example:
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: