Class: SidekiqRobustJob::UniquenessStrategy::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq_robust_job/uniqueness_strategy/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(locker:, lock_ttl_proc:, jobs_repository:, memory_monitor:) ⇒ Base

Returns a new instance of Base.



7
8
9
10
11
12
# File 'lib/sidekiq_robust_job/uniqueness_strategy/base.rb', line 7

def initialize(locker:, lock_ttl_proc:,  jobs_repository:, memory_monitor:)
  @locker = locker
  @lock_ttl_proc = lock_ttl_proc
  @jobs_repository = jobs_repository
  @memory_monitor = memory_monitor
end

Instance Method Details

#execute(_job) ⇒ Object



14
15
16
# File 'lib/sidekiq_robust_job/uniqueness_strategy/base.rb', line 14

def execute(_job)
  raise "implement me"
end