bullmq - v5.66.7
    Preparing search index...

    Type Alias KeepJobs

    KeepJobs: { count: number } | { age: number; count?: number; limit?: number }

    KeepJobs

    Specify which jobs to keep after finishing. If both age and count are specified, then the jobs kept will be the ones that satisfies both properties.

    Type Declaration

    • { count: number }
      • count: number

        Maximum count of jobs to be kept.

    • { age: number; count?: number; limit?: number }
      • age: number

        Maximum age in seconds for job to be kept.

      • Optionalcount?: number

        Maximum count of jobs to be kept.

      • Optionallimit?: number

        Maximum quantity of jobs to be removed.