dirrao commented on code in PR #37786:
URL: https://github.com/apache/airflow/pull/37786#discussion_r1506962210


##########
tests/providers/amazon/aws/executors/ecs/test_ecs_executor.py:
##########
@@ -829,6 +830,45 @@ def test_update_running_tasks_failed(self, mock_executor, 
caplog):
             "test failure" in caplog.messages[0]
         )
 
+    def test_try_adopt_task_instances(self, mock_executor):
+        """Test that executor can adopt orphaned task instances from a 
SchedulerJob shutdown event."""
+        mock_executor.ecs.describe_tasks.return_value = {
+            "tasks": [
+                {
+                    "taskArn": "001",

Review Comment:
   is this taskarn value same as scheduler_job_id? 



-- 
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]

Reply via email to