UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

22 lines (21 loc) 626 B
import { QueueEvent } from "./types.mjs"; import { ServiceContext } from "../../utils/services/types.mjs"; //#region src/libs/queue/execute-single-job.d.ts /** * Executes a single job and updates its status in the database. */ declare const executeSingleJob: (context: ServiceContext, data: { jobId: string; event: QueueEvent; payload: Record<string, unknown>; attempts: number; maxAttempts: number; setNextRetryAt?: boolean; }) => Promise<{ success: boolean; shouldRetry: boolean; message: string; }>; //#endregion export { executeSingleJob as default }; //# sourceMappingURL=execute-single-job.d.mts.map