advanced-options.d.ts 553 B

12345678910111213141516171819
  1. import { BackoffStrategy } from '../types/backoff-strategy';
  2. import { RepeatStrategy } from '../types/repeat-strategy';
  3. export interface AdvancedRepeatOptions {
  4. /**
  5. * A custom cron strategy.
  6. */
  7. repeatStrategy?: RepeatStrategy;
  8. /**
  9. * A hash algorithm to be used when trying to create the job redis key.
  10. * Default - md5
  11. */
  12. repeatKeyHashAlgorithm?: string;
  13. }
  14. export interface AdvancedOptions extends AdvancedRepeatOptions {
  15. /**
  16. * A custom backoff strategy.
  17. */
  18. backoffStrategy?: BackoffStrategy;
  19. }