Class: Tantot::Strategy::Sidekiq::Worker
- Inherits:
-
Object
- Object
- Tantot::Strategy::Sidekiq::Worker
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/tantot/strategy/sidekiq.rb
Instance Method Summary collapse
Instance Method Details
#perform(agent_id, changes_by_model) ⇒ Object
7 8 9 10 11 |
# File 'lib/tantot/strategy/sidekiq.rb', line 7 def perform(agent_id, changes_by_model) agent = Tantot.agent_registry.agent(agent_id) raise AgentNotFound.new("No registered agent with id #{agent_id}") unless agent agent.perform(Tantot::Strategy::Sidekiq.unmarshal(changes_by_model)) end |