nirajkhetre commented on issue #71879:
URL: https://github.com/apache/airflow/issues/71879#issuecomment-7049556602

   I looked at this on current `main`. The scheduler crash is already handled 
since apache-airflow-providers-cncf-kubernetes 10.21.0 (#68480): 
`_create_pods_sequentially` catches `TRANSIENT_CONNECTION_ERRORS` around 
`run_next`, and urllib3's `ProtocolError` is a subclass of `HTTPError`, which 
is in that tuple. So the error goes to `_handle_pod_publish_error` instead of 
reaching the scheduler loop. Both reports here are on older versions (10.19.0 
and 10.18.0).
   
   What happens to the task after that depends on `[kubernetes_executor] 
task_publish_max_retries`. With the default of `0` the task is failed on the 
first connection error, so the scheduler keeps running but the task isn't 
retried. Setting it to a positive number, or `-1` for unlimited, requeues the 
task and tries the pod again on a later scheduler loop. 
`test_run_next_connection_error_requeue` covers both cases.
   
   @nhippe-ds, to your question on #71909: upgrading the provider to 10.21.0 or 
later and setting `task_publish_max_retries` should cover it.
   
   The option's description still says it's only for exceeded quota errors, so 
I opened #77415 to update it.
   
   Generated-by: Claude Opus 5.5
   


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