lib/rocket_job/heartbeat.rb in rocketjob-1.0.0 vs lib/rocket_job/heartbeat.rb in rocketjob-1.1.0
- old
+ new
@@ -6,10 +6,11 @@
class Heartbeat
include MongoMapper::EmbeddedDocument
embedded_in :worker
+ # @formatter:off
# Time of the last heartbeat received from this worker
key :updated_at, Time
# Number of threads running as at the last heartbeat interval
key :active_threads, Integer
@@ -37,8 +38,10 @@
key :host_mem_avail_phys_kbytes, Float
key :host_mem_avail_virt_kbytes, Float
# If available
key :load_average, Float
+ # @formatter:on
+
end
end