EmboFlow/apps/worker/src/contracts/execution-context.ts
2026-03-26 21:13:05 +08:00

24 lines
567 B
TypeScript

export type ExecutorType = "python" | "docker" | "http";
export type TaskStatus = "pending" | "queued" | "running" | "success" | "failed";
export type TaskRecord = {
id: string;
workflowRunId?: string;
workflowVersionId?: string;
nodeId: string;
nodeType?: string;
executorType: ExecutorType;
status: TaskStatus;
attempt?: number;
upstreamNodeIds?: string[];
outputArtifactIds?: string[];
errorMessage?: string;
};
export type ExecutionContext = {
taskId: string;
workflowRunId?: string;
workflowVersionId?: string;
nodeId: string;
};