19 lines
493 B
TypeScript
19 lines
493 B
TypeScript
import { BackoffStrategy, RepeatStrategy } from '../types';
|
|
export interface AdvancedRepeatOptions {
|
|
/**
|
|
* A custom cron strategy.
|
|
*/
|
|
repeatStrategy?: RepeatStrategy;
|
|
/**
|
|
* A hash algorithm to be used when trying to create the job redis key.
|
|
* Default - md5
|
|
*/
|
|
repeatKeyHashAlgorithm?: string;
|
|
}
|
|
export interface AdvancedOptions extends AdvancedRepeatOptions {
|
|
/**
|
|
* A custom backoff strategy.
|
|
*/
|
|
backoffStrategy?: BackoffStrategy;
|
|
}
|