mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 02:49:03 +01:00
12 lines
356 B
Ruby
12 lines
356 B
Ruby
|
# 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
|