trigger.dev
Version:
A Command-Line Interface for Trigger.dev projects
10 lines (9 loc) • 749 B
TypeScript
import type { WorkerManifest } from "@trigger.dev/core/v3/schemas";
/** Starts the run worker in warmup mode; the next argument is the directory holding index.json. */
export declare const WARMUP_FLAG = "--trigger-warmup";
/**
* The command that starts the deployed run worker in warmup mode, as the run controller would start
* it for a run. It needs no env and no working directory, so a host can run it to prime a snapshot of
* the image. The runtime binary is looked up on the image's PATH, as the image's entrypoint is.
*/
export declare function warmupCommand(workerManifest: Pick<WorkerManifest, "runtime" | "workerEntryPoint" | "compiledWorkerPath" | "loaderEntryPoint" | "customConditions" | "compileCacheDir">, cwd: string): string[];