Module: Shitekiq::ClassMethods

Defined in:
lib/shitekiq.rb

Instance Method Summary collapse

Instance Method Details

#perform_async(*args) ⇒ Object



43
44
45
# File 'lib/shitekiq.rb', line 43

def perform_async(*args)
  Shitekiq.backend.push(job: self, args: args)
end

#perform_now(*args) ⇒ Object



39
40
41
# File 'lib/shitekiq.rb', line 39

def perform_now(*args)
  new.perform(*args)
end