class RSpecQ::Formatters::WorkerHeartbeatRecorder

Updates the respective heartbeat key of the worker after each example.

Refer to the documentation of WORKER_LIVENESS_SEC for more info.

Public Class Methods

new(worker) click to toggle source
# File lib/rspecq/formatters/worker_heartbeat_recorder.rb, line 7
def initialize(worker)
  @worker = worker
end

Public Instance Methods

example_finished(*) click to toggle source
# File lib/rspecq/formatters/worker_heartbeat_recorder.rb, line 11
def example_finished(*)
  @worker.update_heartbeat
end