Class: Interactor::SidekiqWorker::Worker
- Inherits:
-
Object
- Object
- Interactor::SidekiqWorker::Worker
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/interactor/sidekiq.rb
Instance Method Summary collapse
Instance Method Details
#perform(context) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/interactor/sidekiq.rb', line 27 def perform(context) interactor_class(context).sync_call(context.reject { |c| ['interactor_class'].include? c.to_s }) rescue Exception => e if interactor_class(context).respond_to?(:handle_sidekiq_exception) interactor_class(context).handle_sidekiq_exception(e) else raise e end end |