Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
better env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingrismore committed Jan 31, 2024
1 parent 8230852 commit 3e4403b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prefect_kubernetes/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e4403b

Please sign in to comment.