diff options
| author | Dan Engelbrecht <[email protected]> | 2026-04-08 17:42:57 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-08 17:42:57 +0200 |
| commit | 110aa738efe8f30afd16461fb6e6ee238624f714 (patch) | |
| tree | 2059294cec9792c2f5e3cc16ea7f1dbd6e25bfa8 /src/zenserver | |
| parent | use correct return code for unsupported multirange requests in objectstore (#... (diff) | |
| download | zen-110aa738efe8f30afd16461fb6e6ee238624f714.tar.xz zen-110aa738efe8f30afd16461fb6e6ee238624f714.zip | |
fully provisioned hub instances now sets initial check status to "passing" in consul (#930)
Diffstat (limited to 'src/zenserver')
| -rw-r--r-- | src/zenserver/hub/zenhubserver.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/zenserver/hub/zenhubserver.cpp b/src/zenserver/hub/zenhubserver.cpp index b94e04092..db988395c 100644 --- a/src/zenserver/hub/zenhubserver.cpp +++ b/src/zenserver/hub/zenhubserver.cpp @@ -438,12 +438,9 @@ ZenHubServer::OnModuleStateChanged(std::string_view HubInstanceId, .Tags = std::vector<std::pair<std::string, std::string>>{std::make_pair("module", std::string(ModuleId)), std::make_pair("zen-hub", std::string(HubInstanceId)), std::make_pair("version", std::string(ZEN_CFG_VERSION))}, - .HealthIntervalSeconds = NewState == HubInstanceState::Provisioning - ? 0u - : m_ConsulHealthIntervalSeconds, // Disable health checks while not finished provisioning - .DeregisterAfterSeconds = NewState == HubInstanceState::Provisioning - ? 0u - : m_ConsulDeregisterAfterSeconds}; // Disable health checks while not finished provisioning + .HealthIntervalSeconds = NewState == HubInstanceState::Provisioning ? 0u : m_ConsulHealthIntervalSeconds, + .DeregisterAfterSeconds = NewState == HubInstanceState::Provisioning ? 0u : m_ConsulDeregisterAfterSeconds, + .InitialStatus = NewState == HubInstanceState::Provisioned ? "passing" : ""}; if (!m_ConsulClient->RegisterService(ServiceInfo)) { |