parent.d.ts 503 B

123456789101112131415161718192021222324
  1. import { JobsOptions } from '../types/job-options';
  2. /**
  3. * Describes the parent for a Job.
  4. */
  5. export interface Parent<T> {
  6. name: string;
  7. prefix?: string;
  8. queue?: string;
  9. data?: T;
  10. opts?: JobsOptions;
  11. }
  12. export interface ParentKeys {
  13. id?: string;
  14. queueKey: string;
  15. fpof?: boolean;
  16. rdof?: boolean;
  17. idof?: boolean;
  18. cpof?: boolean;
  19. }
  20. export type ParentKeyOpts = {
  21. addToWaitingChildren?: boolean;
  22. parentDependenciesKey?: string;
  23. parentKey?: string;
  24. };