Projektstart

This commit is contained in:
2026-01-22 15:49:12 +01:00
parent 7212eb6f7a
commit 57e5f652f8
10637 changed files with 2598792 additions and 64 deletions

View File

@@ -0,0 +1,50 @@
import { ParserOptions } from 'cron-parser';
/**
* Settings for repeatable jobs
*
* @see {@link https://docs.bullmq.io/guide/jobs/repeatable}
*/
export interface RepeatOptions extends Omit<ParserOptions, 'iterator'> {
/**
* A repeat pattern
*/
pattern?: string;
/**
* Custom repeatable key. This is the key that holds the "metadata"
* of a given repeatable job. This key is normally auto-generated but
* it is sometimes useful to specify a custom key for easier retrieval
* of repeatable jobs.
*/
key?: string;
/**
* Number of times the job should repeat at max.
*/
limit?: number;
/**
* Repeat after this amount of milliseconds
* (`pattern` setting cannot be used together with this setting.)
*/
every?: number;
/**
* Repeated job should start right now
* ( work only with cron settings)
*/
immediately?: boolean;
/**
* The start value for the repeat iteration count.
*/
count?: number;
/**
* Offset in milliseconds to affect the next iteration time
* */
offset?: number;
/**
* Internal property to store the previous time the job was executed.
*/
prevMillis?: number;
/**
* Internal property to store de job id
* @deprecated not in use anymore
*/
jobId?: string;
}