fix: trace codex stdio lifecycle
This commit is contained in:
@@ -198,6 +198,7 @@ export async function createKubernetesRunnerJob(options: { store: AgentRunStore;
|
||||
mutation: true,
|
||||
runId: run.id,
|
||||
commandId,
|
||||
runnerJobId: render.runnerJobId,
|
||||
attemptId: render.attemptId,
|
||||
runnerId: render.runnerId,
|
||||
namespace: render.namespace,
|
||||
@@ -213,6 +214,7 @@ export async function createKubernetesRunnerJob(options: { store: AgentRunStore;
|
||||
runner: {
|
||||
runId: run.id,
|
||||
commandId,
|
||||
runnerJobId: render.runnerJobId,
|
||||
attemptId: render.attemptId,
|
||||
runnerId: render.runnerId,
|
||||
backendProfile: run.backendProfile,
|
||||
@@ -250,6 +252,7 @@ export async function createKubernetesRunnerJob(options: { store: AgentRunStore;
|
||||
},
|
||||
} satisfies JsonRecord;
|
||||
const saved = await options.store.saveRunnerJob({
|
||||
id: render.runnerJobId,
|
||||
runId: run.id,
|
||||
commandId,
|
||||
idempotencyKey: idempotencyKey ?? null,
|
||||
@@ -267,6 +270,7 @@ export async function createKubernetesRunnerJob(options: { store: AgentRunStore;
|
||||
await options.store.appendEvent(run.id, "backend_status", {
|
||||
phase: "runner-job-created",
|
||||
commandId,
|
||||
runnerJobId: saved.id,
|
||||
attemptId: saved.attemptId,
|
||||
runnerId: saved.runnerId,
|
||||
namespace: saved.namespace,
|
||||
|
||||
Reference in New Issue
Block a user