diff --git a/control-plane/src/modules/router.ts b/control-plane/src/modules/router.ts index abeed568..a46c2335 100644 --- a/control-plane/src/modules/router.ts +++ b/control-plane/src/modules/router.ts @@ -957,9 +957,9 @@ export const router = s.router(contract, { const { clusterId } = request.params; const { task } = request.body; - const taskId = ulid(); const { executeTaskForCluster } = require("./agents/agent"); + const taskId = ulid(); const result = await executeTaskForCluster({ clusterId }, taskId, task); return {