diff --git a/server/src/__tests__/environment-task-runtime.test.ts b/server/src/__tests__/environment-task-runtime.test.ts index 7a2bc80550c..c7f6f2be838 100644 --- a/server/src/__tests__/environment-task-runtime.test.ts +++ b/server/src/__tests__/environment-task-runtime.test.ts @@ -431,7 +431,7 @@ describe("plugin-provided Runner execution", () => { await expect(executeEnvironmentTask(database().db, accepted as never, { companyId: "company", leaseId, operation: { ...operation, preparationDigest, runDigest } })).resolves.toEqual(result); expect(accepted.call).toHaveBeenCalledWith("original", "environmentTask", expect.objectContaining({ - operation: expect.objectContaining({ preparationDigest, runDigest }) }), 15_000); + operation: expect.objectContaining({ preparationDigest, runDigest }) }), 60_000); const forged = `sha256:${"b".repeat(64)}`; for (const digests of [{ preparationDigest: forged, runDigest }, { preparationDigest, runDigest: forged }, { preparationDigest }, { runDigest }]) { @@ -458,7 +458,7 @@ describe("plugin-provided Runner execution", () => { .resolves.toEqual(result); expect(workers.call).toHaveBeenCalledWith("original", "environmentTask", expect.objectContaining({ companyId: "company", runId: "run", agentId: "agent", projectIds: [projectId], operation, - }), 15_000); + }), 60_000); expect(store.sets).toHaveLength(atSubmit || checked ? 2 : 1); if (atSubmit || checked) expect(new PgDialect().sqlToQuery(store.sets[1].metadata as never).params).toContain(JSON.stringify({ runnerTaskProjectAuthValidation: { configurationId: "configuration-1", provider: "openai", projectIds: [projectId], diff --git a/server/src/services/environment-task-runtime.ts b/server/src/services/environment-task-runtime.ts index 825adbc1fba..ded4de1a616 100644 --- a/server/src/services/environment-task-runtime.ts +++ b/server/src/services/environment-task-runtime.ts @@ -620,7 +620,8 @@ export async function executeEnvironmentTask(db: Db, workers: Pick { // The plugin may have applied the saved claim before its reply was lost. // Keep the same operation ID; the RPC response below still needs validation.