sidekiq_unique_jobs.rake 356 B

1234567891011
  1. # frozen_string_literal: true
  2. namespace :sidekiq_unique_jobs do
  3. task delete_all_locks: :environment do
  4. digests = SidekiqUniqueJobs::Digests.new
  5. digests.delete_by_pattern('*', count: digests.count)
  6. expiring_digests = SidekiqUniqueJobs::ExpiringDigests.new
  7. expiring_digests.delete_by_pattern('*', count: expiring_digests.count)
  8. end
  9. end