module PerfectQueue::TaskMonitorHook
Attributes
log[RW]
runner[RW]
task_monitor[RW]
Public Instance Methods
finish!(*args, &block)
click to toggle source
Calls superclass method
# File lib/perfectqueue/task_monitor.rb, line 160 def finish!(*args, &block) @log.info "finished task=#{self.key}" if @log @task_monitor.task_finished(self) { super(*args, &block) } end
release!(*args, &block)
click to toggle source
Calls superclass method
# File lib/perfectqueue/task_monitor.rb, line 167 def release!(*args, &block) @log.info "release task=#{self.key}" if @log @task_monitor.task_finished(self) { super(*args, &block) } end
retry!(*args, &block)
click to toggle source
Calls superclass method
# File lib/perfectqueue/task_monitor.rb, line 174 def retry!(*args, &block) @log.info "retry task=#{self.key}" if @log @task_monitor.task_finished(self) { super(*args, &block) } end
update_data!(hash)
click to toggle source
Calls superclass method
# File lib/perfectqueue/task_monitor.rb, line 181 def update_data!(hash) @log.info "update data #{hash.inspect} task=#{self.key}" if @log @task_monitor.external_task_heartbeat(self) { super(hash) } end