1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-12 05:38:19 +09:00
mastodon/lib/tasks/sidekiq_unique_jobs.rake

12 lines
356 B
Ruby
Raw Normal View History

# 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