-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ECSOperator returns last logs when ECS task fails (#17209)
closes: apache/airflow#17038 This PR changes the message in the AirflowException when the ECS task launched by ECSOperator is stopped. **Before:** The message when it failed was: `This task is not in success state {<huge JSON from AWS containing all the ECS task details>}` **Now:** The message is: ``` This task is not in success state - last logs from Cloudwatch: <last_logs_from_cloudwatch> ``` which makes it much more useful to understand what failed in the underlying code directly from the alert. The number of logs can be customized with the parameter `number_logs_exception`. GitOrigin-RevId: e6cb2f7beb4c6ea4ad4a965f9c0f2b8f6978129c
- Loading branch information
1 parent
b670d81
commit 03b7546
Showing
2 changed files
with
61 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters