Class: Mamiya::Agent::Tasks::Ping
- Defined in:
- lib/mamiya/agent/tasks/ping.rb
Instance Attribute Summary
Attributes inherited from Abstract
#agent, #error, #logger, #task, #task_queue
Instance Method Summary collapse
Methods inherited from Abstract
#after, #before, #errored, #execute, identifier, #initialize, #raise_error?, #task_id
Constructor Details
This class inherits a constructor from Mamiya::Agent::Tasks::Abstract
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/mamiya/agent/tasks/ping.rb', line 8 def run logger.info "Responding ping: #{task.inspect}" agent.trigger('pong', coalesce: false, at: Time.now.to_i, id: self.task_id, ) end |