Skip to content

Commit

Permalink
Support force_system_packages argument in k8s glue class
Browse files Browse the repository at this point in the history
  • Loading branch information
allegroai committed Dec 26, 2023
1 parent 432ee39 commit c9fc092
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clearml_agent/glue/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def __init__(
max_pods_limit=None,
pod_name_prefix=None,
limit_pod_label=None,
force_system_packages=None,
**kwargs
):
"""
Expand Down Expand Up @@ -142,7 +143,8 @@ def __init__(
self.k8s_pending_queue_name = k8s_pending_queue_name or self.K8S_PENDING_QUEUE
self.k8s_pending_queue_id = None
self.container_bash_script = container_bash_script or self.CONTAINER_BASH_SCRIPT
force_system_packages = ENV_FORCE_SYSTEM_SITE_PACKAGES.get()
if force_system_packages is None:
force_system_packages = ENV_FORCE_SYSTEM_SITE_PACKAGES.get()
self._force_system_site_packages = force_system_packages if force_system_packages is not None else True
if self._force_system_site_packages:
# Use system packages, because by we will be running inside a docker
Expand Down

0 comments on commit c9fc092

Please sign in to comment.