Class: Resqued::WorkerSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/resqued/worker.rb

Overview

Metadata for an exited listener worker.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alive_time_sec:, process_status:) ⇒ WorkerSummary

Returns a new instance of WorkerSummary.



129
130
131
132
# File 'lib/resqued/worker.rb', line 129

def initialize(alive_time_sec:, process_status:)
  @alive_time_sec = alive_time_sec
  @process_status = process_status
end

Instance Attribute Details

#alive_time_secObject (readonly)

Returns the value of attribute alive_time_sec.



127
128
129
# File 'lib/resqued/worker.rb', line 127

def alive_time_sec
  @alive_time_sec
end

#process_statusObject (readonly)

Returns the value of attribute process_status.



127
128
129
# File 'lib/resqued/worker.rb', line 127

def process_status
  @process_status
end