prefect.server.services.telemetry

The Telemetry service.

Classes

Telemetry

Sends anonymous data to Prefect to help us improve It can be toggled off with the PREFECT_SERVER_ANALYTICS_ENABLED setting. Methods:

enabled

enabled(cls) -> bool

environment_variable_name

environment_variable_name(cls) -> str

run_once

run_once(self) -> None
Sends a heartbeat to the sens-o-matic

run_once

run_once(self) -> None
Represents one loop of the service. Subclasses must override this method. To actually run the service once, call LoopService().start(loops=1) instead of LoopService().run_once(), because this method will not invoke setup and teardown methods properly.

service_settings

service_settings(cls) -> ServicesBaseSetting

start

start(self, loops: None = None) -> NoReturn
Run the service indefinitely.

stop

stop(self, block: bool = True) -> None
Gracefully stops a running LoopService and optionally blocks until the service stops. Args:
  • block: if True, blocks until the service is finished running. Otherwise it requests a stop and returns but the service may still be running a final loop.