You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
356 B
12 lines
356 B
9 months ago
|
# frozen_string_literal: true
|
||
|
|
||
|
namespace :sidekiq_unique_jobs do
|
||
|
task delete_all_locks: :environment do
|
||
|
digests = SidekiqUniqueJobs::Digests.new
|
||
|
digests.delete_by_pattern('*', count: digests.count)
|
||
|
|
||
|
expiring_digests = SidekiqUniqueJobs::ExpiringDigests.new
|
||
|
expiring_digests.delete_by_pattern('*', count: expiring_digests.count)
|
||
|
end
|
||
|
end
|