o-nikolas commented on code in PR #74129:
URL: https://github.com/apache/airflow/pull/74129#discussion_r4619321655


##########
providers/amazon/docs/operators/ecs.rst:
##########
@@ -209,6 +209,25 @@ the operator returns before checking exit codes. On 
Airflow versions supporting
 ``retry_policy``, a matching code raises ``AirflowFailException``, which 
bypasses
 retry policies, including a policy that would otherwise retry the task.
 
+Control task termination
+""""""""""""""""""""""""
+
+By default, ``EcsRunTaskOperator`` requests that ECS stop the task when 
Airflow calls
+the operator's ``on_kill()`` callback, for example on an execution timeout 
while the
+worker is waiting for completion. Set ``stop_task_on_kill=False`` to let the 
ECS task
+continue running independently. Local log fetching is stopped in either case.
+
+This option only controls ``on_kill()``. It does not change cancellation after 
the

Review Comment:
   nit (optional): "It does not change cancellation after the operator has 
deferred" reads a bit vague to me. As far as I can tell `TaskDoneTrigger` has 
no cancel or cleanup step, so in deferrable mode killing the Airflow task never 
stops the ECS task, whatever this flag says. Could we say that directly, 
something like "In deferrable mode, killing the Airflow task does not stop the 
ECS task, regardless of this option."? Happy to merge as is if you'd rather 
keep it.
   
   ---
   Drafted-by: Kiro (claude-opus-5.5); reviewed by @o-nikolas before posting



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