diff --git a/client/src/features/admin/AddResourcePoolButton.tsx b/client/src/features/admin/AddResourcePoolButton.tsx index 8f24446b5c..07fc517cb5 100644 --- a/client/src/features/admin/AddResourcePoolButton.tsx +++ b/client/src/features/admin/AddResourcePoolButton.tsx @@ -39,6 +39,7 @@ import { usePostResourcePoolsMutation, type RemoteConfiguration, } from "../sessionsV2/api/computeResources.api"; +import { PAUSE_SESSION_WARNING_GRACE_PERIOD_SECONDS } from "../sessionsV2/session.constants"; import { useGetNotebooksVersionQuery } from "../versions/versions.api"; import type { ResourcePoolForm } from "./adminComputeResources.types"; import ResourcePoolClusterIdInput from "./forms/ResourcePoolClusterIdInput"; @@ -105,6 +106,7 @@ function AddResourcePoolModal({ isOpen, toggle }: AddResourcePoolModalProps) { gpu: defaultQuota.gpu, }, idleThresholdMinutes: undefined, + pauseWarningMinutes: undefined, hibernationThresholdMinutes: undefined, clusterId: "", remote: { @@ -159,6 +161,9 @@ function AddResourcePoolModal({ isOpen, toggle }: AddResourcePoolModalProps) { idle_threshold: data.idleThresholdMinutes ? data.idleThresholdMinutes * 60 : undefined, + hibernation_warning_period: data.pauseWarningMinutes + ? data.pauseWarningMinutes * 60 + : undefined, name: data.name, public: data.public, quota: data.quota, @@ -180,6 +185,7 @@ function AddResourcePoolModal({ isOpen, toggle }: AddResourcePoolModalProps) { gpu: defaultQuota.gpu, }, idleThresholdMinutes: undefined, + pauseWarningMinutes: undefined, hibernationThresholdMinutes: undefined, clusterId: "", remote: { @@ -248,9 +254,10 @@ function AddResourcePoolModal({ isOpen, toggle }: AddResourcePoolModalProps) { />