class Tantot::Strategy::Sidekiq::Worker

Public Instance Methods

perform(agent_id, changes_by_model) click to toggle source
# 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