Skip to content

JobDecoratorOptions

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

Options for the

method decorator.

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

  • WorkerOptions
optional baseRetryInterval?: number;

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

Base interval in milliseconds for exponential backoff calculation. Actual delay = 2^failCount * baseRetryInterval

1000

MonqueTsedConfig.baseRetryInterval


optional concurrency?: number;

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

Number of concurrent jobs this worker can process.

5 (uses defaultConcurrency from MonqueOptions)
CoreWorkerOptions.concurrency

optional maxBackoffDelay?: number;

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

Maximum delay in milliseconds for exponential backoff. If calculated delay exceeds this value, it will be capped.

Defaults to 24 hours to prevent unbounded delays.

86400000 (24 hours)

MonqueTsedConfig.maxBackoffDelay


optional maxRetries?: number;

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

Maximum number of retry attempts before marking a job as permanently failed.

10

MonqueTsedConfig.maxRetries


optional replace?: boolean;

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

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

false
CoreWorkerOptions.replace

optional schema?: StandardSchemaV1<unknown, unknown>;

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

Validate persisted input before handling it; the handler receives the schema output.

CoreWorkerOptions.schema