module MultiBackgroundJob::Workers::SharedClassMethods
Public Instance Methods
perform_async(*args)
click to toggle source
# File lib/multi_background_job/workers/shared_class_methods.rb, line 6 def perform_async(*args) build_worker.with_args(*args).push end
perform_in(interval, *args)
click to toggle source
# File lib/multi_background_job/workers/shared_class_methods.rb, line 10 def perform_in(interval, *args) build_worker.with_args(*args).at(interval).push end
Also aliased as: perform_at
Protected Instance Methods
build_worker()
click to toggle source
# File lib/multi_background_job/workers/shared_class_methods.rb, line 21 def build_worker MultiBackgroundJob[self.name, **service_worker_options.merge(bg_worker_options)] end
service_worker_options()
click to toggle source
# File lib/multi_background_job/workers/shared_class_methods.rb, line 17 def service_worker_options {} end