hasJobWithDeduplicationKey method

  1. @override
bool hasJobWithDeduplicationKey(
  1. Job job
)
override

Implementation

@override
bool hasJobWithDeduplicationKey(Job job) =>
    job.deduplicationKey != null &&
    (_queue.any((j) => j.job.deduplicationKey == job.deduplicationKey) ||
        _executing
            .any((j) => j.job.deduplicationKey == job.deduplicationKey));