MCPcopy Create free account
hub / github.com/cli/cli / shutdown

Method shutdown

evals/src/core/executor.ts:103–106  ·  view source on GitHub ↗

Vally calls this on SIGINT or SIGTERM and exits once it resolves, so wait for the running trial to clean up its * live resources. The trial stops its agent at its next check.

()

Source from the content-addressed store, hash-verified

101 /** Vally calls this on SIGINT or SIGTERM and exits once it resolves, so wait for the running trial to clean up its
102 * live resources. The trial stops its agent at its next check. */
103 async shutdown(): Promise<void> {
104 this.stopping = true;
105 await this.queue;
106 }
107
108 private async trial(stimulus: Stimulus, options: ExecutorOptions): Promise<Trajectory> {
109 const { suite, scenario } = parseExecutorConfig(options.executorConfig, this.suites);

Callers 2

cleanup.test.tsFile · 0.80
agentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected