Module: Sidekiq::Worker::SignletonOverrides

Included in:
Sidekiq::Worker
Defined in:
lib/sidekiq_unique_jobs/testing.rb

Overview

Prepends singleton methods to Sidekiq::Worker

Instance Method Summary collapse

Instance Method Details

#clear_allObject

Clears all jobs for this worker and removes all locks



126
127
128
129
130
# File 'lib/sidekiq_unique_jobs/testing.rb', line 126

def clear_all
  super

  SidekiqUniqueJobs::Digests.new.delete_by_pattern("*", count: 10_000)
end