Fix JD01 web observe GC and legacy cleanup
This commit is contained in:
@@ -526,6 +526,7 @@ function buildObserveCommandPlan(config: WebProbeSentinelServiceConfig, scenario
|
||||
"--target-path", targetPath,
|
||||
"--sample-interval-ms", String(numberAt(scenario, "sampleIntervalMs")),
|
||||
"--screenshot-interval-ms", String(numberAt(scenario, "screenshotIntervalMs")),
|
||||
"--max-run-seconds", String(numberAt(scenario, "maxRunSeconds")),
|
||||
"--command-timeout-seconds", "55",
|
||||
];
|
||||
const viewport = stringOrNull(scenario.viewport);
|
||||
@@ -562,7 +563,17 @@ function buildObserveCommandPlan(config: WebProbeSentinelServiceConfig, scenario
|
||||
argv: ["bun", "scripts/cli.ts", "web-probe", "observe", "analyze", "<observerId>"],
|
||||
stdinSource: "none",
|
||||
};
|
||||
return [start, ...commands, analyze];
|
||||
const stop: CommandPlanStep = {
|
||||
phase: "observe-stop",
|
||||
argv: ["bun", "scripts/cli.ts", "web-probe", "observe", "stop", "<observerId>", "--node", config.node, "--lane", config.lane, "--force", "--wait-ms", "55000", "--command-timeout-seconds", "55"],
|
||||
stdinSource: "none",
|
||||
};
|
||||
const gc: CommandPlanStep = {
|
||||
phase: "observe-gc",
|
||||
argv: ["bun", "scripts/cli.ts", "web-probe", "observe", "gc", "--node", config.node, "--lane", config.lane, "--confirm", "--command-timeout-seconds", "55"],
|
||||
stdinSource: "none",
|
||||
};
|
||||
return [start, ...commands, analyze, stop, gc];
|
||||
}
|
||||
|
||||
function inlinePromptText(item: Record<string, unknown>): string | null {
|
||||
|
||||
Reference in New Issue
Block a user