ferruzzi commented on code in PR #36803:
URL: https://github.com/apache/airflow/pull/36803#discussion_r1453979230
##########
airflow/providers/amazon/aws/executors/ecs/ecs_executor.py:
##########
@@ -470,3 +481,43 @@ def get_container(self, container_list):
if container["name"] == self.container_name:
return container
raise KeyError(f"No such container found by container name:
{self.container_name}")
+
+ def try_adopt_task_instances(self, tis: Sequence[TaskInstance]) ->
Sequence[TaskInstance]:
+ """
+ Try to adopt running task instances if adopt_task_instances option is
set to True.
+
+ These tasks instances should have an ECS process which can be adopted
by the unique task ARN.
Review Comment:
I think this is right. For comparison,. k8s executor filters out "status
== successful", but local just passes them all, and celery appears to print the
state for each but isn't filtering.
--
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]