UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev projects

71 lines (70 loc) 2.75 kB
import { BuildRuntime } from "@trigger.dev/core/v3/schemas"; export type IndexWorkerManifestOptions = { runtime: BuildRuntime; indexWorkerPath: string; buildManifestPath: string; nodeOptions?: string; env: Record<string, string | undefined>; cwd?: string; otelHookInclude?: string[]; otelHookExclude?: string[]; handleStdout?: (data: string) => void; handleStderr?: (data: string) => void; }; export declare function indexWorkerManifest({ runtime, indexWorkerPath, buildManifestPath, nodeOptions, env: $env, cwd, otelHookInclude, otelHookExclude, handleStderr, handleStdout, }: IndexWorkerManifestOptions): Promise<{ runtime: "node" | "node-22" | "bun"; tasks: { id: string; filePath: string; entryPoint: string; maxDuration?: number | undefined; queue?: { name?: string | undefined; concurrencyLimit?: number | null | undefined; } | undefined; machine?: { cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined; memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined; preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined; } | undefined; exportName?: string | undefined; retry?: { maxAttempts?: number | undefined; factor?: number | undefined; minTimeoutInMs?: number | undefined; maxTimeoutInMs?: number | undefined; randomize?: boolean | undefined; outOfMemory?: { machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined; } | undefined; } | undefined; description?: string | undefined; triggerSource?: string | undefined; schedule?: { cron: string; timezone: string; environments?: ("PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW")[] | undefined; } | undefined; payloadSchema?: unknown; }[]; configPath: string; workerEntryPoint: string; runtimeVersion?: string | undefined; queues?: { name: string; concurrencyLimit?: number | null | undefined; }[] | undefined; loaderEntryPoint?: string | undefined; initEntryPoint?: string | undefined; customConditions?: string[] | undefined; otelImportHook?: { include?: string[] | undefined; exclude?: string[] | undefined; } | undefined; controllerEntryPoint?: string | undefined; timings?: Record<string, number> | undefined; processKeepAlive?: { enabled: boolean; maxExecutionsPerProcess?: number | undefined; } | undefined; }>;