Sha256: 81f1489c49793317ee87a04f46ea250a683cebdd6a932279488a03a68c262ed7

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

module SolidQueueDashboard
  module Process
    # Constants
    SUPERVISOR = "Supervisor"
    DISPATCHER = "Dispatcher"
    WORKER = "Worker"
    SCHEDULER = "Scheduler"

    KINDS = [ SUPERVISOR, DISPATCHER, WORKER, SCHEDULER ]

    KIND_COLORS = {
      SUPERVISOR => "blue",
      DISPATCHER => "green",
      WORKER => "yellow",
      SCHEDULER => "purple"
    }

    HEARTBEAT_DEAD_THRESHOLD = 1.minute

    def self.kind_color(kind)
      KIND_COLORS[kind] || "zinc"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solid_queue_dashboard-0.1.1 lib/solid_queue_dashboard/process.rb
solid_queue_dashboard-0.1.0 lib/solid_queue_dashboard/process.rb