class Mamiya::Agent::Tasks::Notifyable
Public Instance Methods
execute()
click to toggle source
Calls superclass method
Mamiya::Agent::Tasks::Abstract#execute
# File lib/mamiya/agent/tasks/notifyable.rb, line 7 def execute agent.trigger('task', action: 'start', task: task, coalesce: false, ) super ensure if error agent.trigger('task', action: 'error', error: error.class.name, task: task, coalesce: false, ) else agent.trigger('task', action: 'finish', task: task, coalesce: false, ) end end