Class: RunThisAsync::AsyncRunner
- Inherits:
-
Object
- Object
- RunThisAsync::AsyncRunner
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/run_this_async/async_runner.rb
Instance Method Summary collapse
Instance Method Details
#perform(expected_job_id, callee, method, args = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/run_this_async/async_runner.rb', line 7 def perform(expected_job_id, callee, method, args = nil) return if unexpected_job_id?(expected_job_id) callee = RunThisAsync::Callee::Decoder.call(callee) if method.is_a?(Array) send_chain_of_methods(callee, method, args) else send_method_to_callee(callee, method, args) end end |