Skip to content

Commit c147b7d

Browse files
authored
disable version check if telemetry is disabled (#2046)
1 parent 7c8d299 commit c147b7d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/robusta/runner/web.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from robusta.clients.robusta_client import fetch_runner_info
1313
from robusta.core.model.env_vars import NUM_EVENT_THREADS, PORT, TRACE_INCOMING_ALERTS, TRACE_INCOMING_REQUESTS, \
14-
PROCESSED_ALERTS_CACHE_TTL, PROCESSED_ALERTS_CACHE_MAX_SIZE, RUNNER_VERSION, RUNNER_BIND_ADDR
14+
PROCESSED_ALERTS_CACHE_TTL, PROCESSED_ALERTS_CACHE_MAX_SIZE, RUNNER_VERSION, RUNNER_BIND_ADDR, ENABLE_TELEMETRY
1515
from robusta.core.playbooks.playbooks_event_handler import PlaybooksEventHandler
1616
from robusta.core.triggers.helm_releases_triggers import HelmReleasesTriggerEvent, IncomingHelmReleasesEventPayload
1717
from robusta.integrations.kubernetes.base_triggers import IncomingK8sEventPayload, K8sTriggerEvent
@@ -46,6 +46,8 @@ def init(event_handler: PlaybooksEventHandler, loader: ConfigLoader):
4646

4747
@staticmethod
4848
def _check_version():
49+
if not ENABLE_TELEMETRY:
50+
return None
4951
runner_info = fetch_runner_info()
5052
if not runner_info or not runner_info.latest_version:
5153
# we couldn't fetch the latest version.

0 commit comments

Comments
 (0)