Documentation Index
Fetch the complete documentation index at: https://docs.prefect.io/llms.txt
Use this file to discover all available pages before exploring further.
prefect.server.services.base
Classes
Service
Methods:
all_services
all_services(cls) -> Sequence[type[Self]]
Get list of all service classes
enabled
Whether the service is enabled
enabled_services
enabled_services(cls) -> list[type[Self]]
Get list of enabled service classes
environment_variable_name
environment_variable_name(cls) -> str
run_services
run_services(cls) -> NoReturn
Run enabled services until cancelled.
running
running(cls) -> AsyncGenerator[None, None]
A context manager that runs enabled services on entry and stops them on
exit.
service_settings
service_settings(cls) -> ServicesBaseSetting
The Prefect setting that controls whether the service is enabled
start
Start running the service, which may run indefinitely
stop
Stop the service
RunInEphemeralServers
A marker class for services that should run even when running an ephemeral server
Methods:
all_services
all_services(cls) -> Sequence[type[Self]]
Get list of all service classes
enabled
Whether the service is enabled
enabled_services
enabled_services(cls) -> list[type[Self]]
Get list of enabled service classes
environment_variable_name
environment_variable_name(cls) -> str
run_services
run_services(cls) -> NoReturn
Run enabled services until cancelled.
running
running(cls) -> AsyncGenerator[None, None]
A context manager that runs enabled services on entry and stops them on
exit.
service_settings
service_settings(cls) -> ServicesBaseSetting
The Prefect setting that controls whether the service is enabled
start
Start running the service, which may run indefinitely
stop
Stop the service
RunInWebservers
A marker class for services that should run when running a webserver
Methods:
all_services
all_services(cls) -> Sequence[type[Self]]
Get list of all service classes
enabled
Whether the service is enabled
enabled_services
enabled_services(cls) -> list[type[Self]]
Get list of enabled service classes
environment_variable_name
environment_variable_name(cls) -> str
run_services
run_services(cls) -> NoReturn
Run enabled services until cancelled.
running
running(cls) -> AsyncGenerator[None, None]
A context manager that runs enabled services on entry and stops them on
exit.
service_settings
service_settings(cls) -> ServicesBaseSetting
The Prefect setting that controls whether the service is enabled
start
Start running the service, which may run indefinitely
stop
Stop the service