From 220ca85eef1bfcf6d32c4045bcacccd46fd4b3d8 Mon Sep 17 00:00:00 2001 From: gibsondan Date: Tue, 14 May 2024 13:50:04 -0500 Subject: [PATCH] Add new startup transient reason (#21842) ## Summary & Motivation ## How I Tested These Changes --- .../libraries/dagster-aws/dagster_aws/ecs/launcher.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python_modules/libraries/dagster-aws/dagster_aws/ecs/launcher.py b/python_modules/libraries/dagster-aws/dagster_aws/ecs/launcher.py index 4aa9333a71366..77a47327fd54e 100644 --- a/python_modules/libraries/dagster-aws/dagster_aws/ecs/launcher.py +++ b/python_modules/libraries/dagster-aws/dagster_aws/ecs/launcher.py @@ -731,6 +731,12 @@ def _is_transient_stop_reason(self, stopped_reason: str): if "CannotPullContainerError" in stopped_reason and "i/o timeout" in stopped_reason: return True + if ( + "CannotPullContainerError" in stopped_reason + and "which reports content size of zero: invalid argument" in stopped_reason + ): + return True + return False def _is_transient_startup_failure(self, run, task):