Skip to main content

executeEventGeneration

API Docs


Function: executeEventGeneration()

executeEventGeneration(job, deps): Promise<ProcessingResult<EventGenerationExecutionResult>>

Defined in: src/workers/eventGeneration/executionEngine.ts:37

Executes the Generation process for a single recurring event job. This function is the core of the execution engine, handling the creation of event instances.

Parameters

job

EventGenerationJob

The Generation job to execute.

deps

WorkerDependencies

The dependencies required for the worker, such as the database client and logger.

Returns

Promise<ProcessingResult<EventGenerationExecutionResult>>

A promise that resolves to a processing result, including metrics and resource usage.