cobald.daemon package

cobald.daemon.runtime = <cobald.daemon.runners.service.ServiceRunner object>

The runner invoked on daemon startup

cobald.daemon.service(flavour: ModuleType) Callable[[type[S]], type[S]][source]

Mark a class as implementing a Service

Each Service class must have a run method, which does not take any arguments. This method is adopt()ed after the daemon starts, unless the Service has been garbage collected

For each service instance, its ServiceUnit is available at service_instance.__service_unit__.

Subpackages

Submodules