UNPKG

@lucidcms/core

Version:

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

23 lines (22 loc) 859 B
import { QueueAdapterInstance } from "../queue/types.mjs"; import { AdapterRuntimeContext, EnvironmentVariables } from "./types.mjs"; import { ServiceContext } from "../../utils/services/types.mjs"; //#region src/libs/runtime/setup-cron-jobs.d.ts /** * Creates the environment for running cron jobs * - creates a passthrough queue adapter so runtime adapters can build the ServiceContext. This allows crons to insert jobs into the queue. */ declare const setupCronJobs: (config: { createQueue: boolean; runtimeContext?: AdapterRuntimeContext; env?: EnvironmentVariables; }) => Promise<{ schedules: string[]; register: (context: ServiceContext, options?: { schedule?: string; }) => Promise<void>; queue: QueueAdapterInstance | undefined; }>; //#endregion export { setupCronJobs as default }; //# sourceMappingURL=setup-cron-jobs.d.mts.map