UNPKG

inngest

Version:

Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.

40 lines 1.41 kB
import { type RegisterOptions } from "../../types.js"; import { type Inngest } from "../Inngest.js"; import { type InngestFunction } from "../InngestFunction.js"; export declare const DEFAULT_SHUTDOWN_SIGNALS: string[]; export interface ConnectApp { client: Inngest.Like; functions?: Array<InngestFunction.Like>; } export interface ConnectHandlerOptions extends RegisterOptions { apps: ConnectApp[]; /** * InstanceId represents a stable identifier to be used for identifying connected SDKs. * This can be a hostname or other identifier that remains stable across restarts. * * If nil, this defaults to the current machine's hostname. */ instanceId?: string; maxConcurrency?: number; /** * By default, connections will be gracefully shut down when the current * process receives a SIGINT or SIGTERM signal. Set this to an empty array to disable this behavior. */ handleShutdownSignals?: string[]; rewriteGatewayEndpoint?: (endpoint: string) => string; } export interface WorkerConnection { connectionId: string; closed: Promise<void>; close: () => Promise<void>; state: ConnectionState; } export declare enum ConnectionState { CONNECTING = "CONNECTING", ACTIVE = "ACTIVE", PAUSED = "PAUSED", RECONNECTING = "RECONNECTING", CLOSING = "CLOSING", CLOSED = "CLOSED" } //# sourceMappingURL=types.d.ts.map