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.
Extends
Section titled “Extends”WorkerOptions
Properties
Section titled “Properties”baseRetryInterval?
Section titled “baseRetryInterval?”Defined in: core/dist/index.d.mts:757
Base interval in milliseconds for exponential backoff calculation. Actual delay = 2^failCount * baseRetryInterval
Default
Section titled “Default”Inherited from
Section titled “Inherited from”MonqueTsedConfig.baseRetryInterval
concurrency?
Section titled “concurrency?”Defined in: core/dist/index.d.mts:954
Number of concurrent jobs this worker can process.
Default
Section titled “Default”Inherited from
Section titled “Inherited from”maxBackoffDelay?
Section titled “maxBackoffDelay?”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.
Default
Section titled “Default”Inherited from
Section titled “Inherited from”MonqueTsedConfig.maxBackoffDelay
maxRetries?
Section titled “maxRetries?”Defined in: core/dist/index.d.mts:751
Maximum number of retry attempts before marking a job as permanently failed.
Default
Section titled “Default”Inherited from
Section titled “Inherited from”replace?
Section titled “replace?”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.
Default
Section titled “Default”Inherited from
Section titled “Inherited from”schema?
Section titled “schema?”Defined in: core/dist/index.d.mts:949
Validate persisted input before handling it; the handler receives the schema output.