EnqueueOptions
Defined in: packages/core/src/jobs/types.ts:138
Options for enqueueing a job.
Example
Section titled “Example”Extends
Section titled “Extends”Properties
Section titled “Properties”priority?
Section titled “priority?”Defined in: packages/core/src/jobs/types.ts:140
Signed safe integer; higher values run first among due Jobs. Defaults to 0.
runAt?
Section titled “runAt?”Defined in: packages/core/src/jobs/types.ts:149
When the job should be processed. Defaults to immediately (new Date()).
session?
Section titled “session?”Defined in: packages/core/src/jobs/types.ts:125
Session from the MongoClient used by Monque. The caller owns its lifetime, transaction, and commit. In a transaction, jobs become visible to workers after commit.
Inherited from
Section titled “Inherited from”uniqueKey?
Section titled “uniqueKey?”Defined in: packages/core/src/jobs/types.ts:145
Deduplication key. If a job with this key is already pending or processing, the enqueue operation will not create a duplicate.