Module: Amigo::ScheduledJob

Defined in:
lib/amigo/scheduled_job.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.extended(cls) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/amigo/scheduled_job.rb', line 10

def self.extended(cls)
  cls.include(Sidekiq::Worker)
  cls.sidekiq_options(retry: false)
  cls.extend(ClassMethods)
  cls.splay_duration = 30
  cls.include(InstanceMethods)
  Amigo.register_job(cls)
end