Skip to content

JobDecoratorOptions

Defined in: tsed/src/decorators/types.ts:17

Options for the

method decorator.

Maps to @monque/core WorkerOptions. All standard Monque worker options are exposed here for decorator-based configuration.

  • WorkerOptions
optional concurrency: number;

Defined in: core/dist/index.d.mts:617

Number of concurrent jobs this worker can process.

5 (uses defaultConcurrency from MonqueOptions)
CoreWorkerOptions.concurrency

optional replace: boolean;

Defined in: core/dist/index.d.mts:623

Allow replacing an existing worker for the same job name. If false (default) and a worker already exists, throws WorkerRegistrationError.

false
CoreWorkerOptions.replace