Class: Hatchet::HealthcheckConfig
- Inherits:
-
Object
- Object
- Hatchet::HealthcheckConfig
- Defined in:
- lib/hatchet/config.rb
Overview
Healthcheck configuration for worker health monitoring
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#port ⇒ Integer
Port number for healthcheck endpoint.
Instance Method Summary collapse
-
#initialize(**options) ⇒ HealthcheckConfig
constructor
Initialize healthcheck configuration.
Constructor Details
#initialize(**options) ⇒ HealthcheckConfig
Initialize healthcheck configuration
74 75 76 77 |
# File 'lib/hatchet/config.rb', line 74 def initialize(**) @port = parse_int([:port] || env_var("HATCHET_CLIENT_WORKER_HEALTHCHECK_PORT")) || 8001 @enabled = parse_bool([:enabled] || env_var("HATCHET_CLIENT_WORKER_HEALTHCHECK_ENABLED")) || false end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
67 |
# File 'lib/hatchet/config.rb', line 67 attr_reader :port, :enabled |
#port ⇒ Integer
Returns Port number for healthcheck endpoint.
67 68 69 |
# File 'lib/hatchet/config.rb', line 67 def port @port end |