From 17e6361d641de147dab5f80b1f9ffafd7c31f0f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Wed, 8 Apr 2026 15:31:52 +0100 Subject: [PATCH] fix(runner): uv venv --clear for redeployments Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/runner/supervisor.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/runner/supervisor.mjs b/apps/runner/supervisor.mjs index 48de31b..4ce3d49 100644 --- a/apps/runner/supervisor.mjs +++ b/apps/runner/supervisor.mjs @@ -252,7 +252,7 @@ const server = createServer(async (req, res) => { mkdirSync(svcSourcePath, { recursive: true }); const { execSync } = await import("node:child_process"); try { - execSync(`uv venv ${join(svcSourcePath, ".venv")}`, { timeout: 30_000, stdio: "pipe" }); + execSync(`uv venv --clear ${join(svcSourcePath, ".venv")}`, { timeout: 30_000, stdio: "pipe" }); execSync(`uv pip install --python ${join(svcSourcePath, ".venv/bin/python")} ${body.uvxPackage}`, { timeout: 120_000, stdio: "pipe" }); console.log(`[runner] uvx package installed: ${body.uvxPackage}`); } catch (e) {