payload
Version:
Node, React, Headless CMS and Application Framework built on Next.js
19 lines • 814 B
TypeScript
import type { PayloadRequest } from '../../index.js';
import type { UpdateJobFunction } from '../operations/runJobs/runJob/getUpdateJobFunction.js';
import type { WorkflowError } from './index.js';
/**
* This is called if a workflow catches an error. It determines if it's a final error
* or not and handles logging.
* A Workflow error = error that happens anywhere in between running tasks.
*
* This function assumes that the error is not a TaskError, but a WorkflowError. If a task errors,
* only a TaskError should be thrown, not a WorkflowError.
*/
export declare function handleWorkflowError({ error, req, updateJob, }: {
error: WorkflowError;
req: PayloadRequest;
updateJob: UpdateJobFunction;
}): Promise<{
hasFinalError: boolean;
}>;
//# sourceMappingURL=handleWorkflowError.d.ts.map