fix(runner): keep session pvc mount provider independent (#239)
This commit is contained in:
+1
-1
@@ -1542,7 +1542,7 @@ async function renderRunnerJob(args: ParsedArgs): Promise<JsonRecord> {
|
||||
const session = await client(args).get(`/api/v1/sessions/${encodeURIComponent(run.sessionRef.sessionId)}`) as { storageKind?: string; storagePvcName?: string; storageNamespace?: string; codexRolloutSubdir?: string };
|
||||
if (session?.storageKind === "pvc" && session.storagePvcName) {
|
||||
const subdir = session.codexRolloutSubdir ?? "sessions";
|
||||
sessionPvc = { pvcName: session.storagePvcName, namespace: session.storageNamespace ?? "agentrun-v01", mountPath: `/home/agentrun/.codex-${run.backendProfile}/${subdir}`, codexRolloutSubdir: subdir };
|
||||
sessionPvc = { pvcName: session.storagePvcName, namespace: session.storageNamespace ?? "agentrun-v01", mountPath: `/home/agentrun/.agentrun-sessions/${subdir}`, codexRolloutSubdir: subdir };
|
||||
}
|
||||
} catch { /* session not found, skip */ }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user