From 3e4403b5dab508c9f8a0c2e19708bcd6e4782232 Mon Sep 17 00:00:00 2001 From: Kevin Cameron Grismore Date: Wed, 31 Jan 2024 12:03:23 -0500 Subject: [PATCH] better env var name --- prefect_kubernetes/worker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prefect_kubernetes/worker.py b/prefect_kubernetes/worker.py index 18b2338..9caba0f 100644 --- a/prefect_kubernetes/worker.py +++ b/prefect_kubernetes/worker.py @@ -707,7 +707,9 @@ def _get_configured_kubernetes_client( except kubernetes.config.ConfigException: client = kubernetes.config.new_client_from_config() - if os.environ.get("TCP_KEEPALIVE", "").strip().lower() in ("true", "1"): + if os.environ.get( + "PREFECT_KUBERNETES_WORKER_ADD_TCP_KEEPALIVE", "" + ).strip().lower() in ("true", "1"): enable_socket_keep_alive(client) return client