zachliu commented on a change in pull request #18733:
URL: https://github.com/apache/airflow/pull/18733#discussion_r722639966
##########
File path: airflow/providers/amazon/aws/operators/ecs.py
##########
@@ -452,6 +460,11 @@ def _check_success_task(self) -> None:
if len(response.get('failures', [])) > 0:
raise AirflowException(response)
+ if self.task_log_fetcher and not
self.task_log_fetcher.is_log_stream_created():
+ raise AirflowException(
+ 'Cloudwatch log stream for the task is not found. The task
probably failed to start.'
+ )
+
for task in response['tasks']:
# This is a `stoppedReason` that indicates a task has not
# successfully finished, but there is no other indication of
failure
Review comment:
aha, we do check `stoppedReason` here. but the "Host EC2 (instance id)
stopped/terminated" is a much rarer reason than "Timeout waiting for network
interface provisioning to complete." according to AWS support when i asked
about "common" reasons for silently failed tasks
--
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]