amoghrajesh commented on code in PR #77197: URL: https://github.com/apache/airflow/pull/77197#discussion_r4715732553
########## providers/cncf/kubernetes/docs/operators.rst: ########## @@ -243,6 +243,12 @@ persisted, the operator falls back to the same label search ``reattach_on_restar used, so a running pod from a prior attempt is still found and reattached to rather than duplicated. Once an identity is persisted, subsequent retries skip the label search entirely. +By default, a try interrupted by ``execution_timeout`` deletes the pod (per ``on_finish_action``), so the retry +starts a fresh pod. To let the retry reattach instead, set ``on_kill_action="keep_pod"``: the pod is left running +and is not marked as already checked. On the last try no retry follows, so the pod is cleaned up as usual. Review Comment: Added it: if the retry never starts, nothing cleans up the kept pod, so the docs point at `active_deadline_seconds` sized for the whole job across tries, since it counts from the pod's start and the retry reattaches to the same pod. -- 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]
