Skip to content

Commit 197aef1

Browse files
committed
CH-108 Fix CPU user quotas
1 parent 9c77086 commit 197aef1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • applications/jupyterhub/src/harness_jupyter/harness_jupyter

applications/jupyterhub/src/harness_jupyter/harness_jupyter/jupyterhub.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ def change_pod_manifest(self: KubeSpawner):
224224

225225
# set user quota cpu/mem usage if value has a "value" else don't change the value
226226
logging.info("Setting user quota cpu/mem usage")
227-
set_key_value(self, key="cpu_guarantee", value=user_quotas.get(
228-
"quota-ws-guaranteecpu"))
227+
set_key_value(self, key="cpu_guarantee", value=float(user_quotas.get(
228+
"quota-ws-guaranteecpu")))
229229
set_key_value(self, key="cpu_limit",
230-
value=user_quotas.get("quota-ws-maxcpu"))
230+
value=float(user_quotas.get("quota-ws-maxcpu")))
231231
set_key_value(self, key="mem_guarantee", value=user_quotas.get(
232232
"quota-ws-guaranteemem"), unit="G")
233233
set_key_value(self, key="mem_limit", value=user_quotas.get(

0 commit comments

Comments
 (0)