-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add timeout when watching pod events in k8s executor #39551
Add timeout when watching pod events in k8s executor #39551
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py
Outdated
Show resolved
Hide resolved
airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py
Outdated
Show resolved
Hide resolved
airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py
Outdated
Show resolved
Hide resolved
airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
If we don't set a timeout, it may hang indefinitely if there's a network issue.
…r_utils.py Co-authored-by: Ryan Hatter <25823361+RNHTTR@users.noreply.github.com>
654739b
to
54a3fe0
Compare
Should this be marked as closes #36998 ? |
it's not obvious to me how this would be connected to that issue |
kwargs["_request_timeout"] = client_timeout | ||
kwargs["timeout_seconds"] = server_conn_timeout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These settings were configurable using the AIRFLOW__KUBERNETES_EXECUTOR__KUBE_CLIENT_REQUEST_ARGS env variable, but now they are overridden if I'm not mistaken. Is this expected?
If we don't set a timeout, it may hang indefinitely if there's a network issue. --------- Co-authored-by: Ryan Hatter <25823361+RNHTTR@users.noreply.github.com>
If we don't set a timeout, it may hang indefinitely if there's a network issue.