Updated
On this page
Manages long-running service processes declared in a workflow: start_service spawns and polls health checks until ready, stop_service terminates, check_health probes liveness.
#scheduler.src.orxtra.scheduler._services
#scheduler.src.orxtra.scheduler._services
#ServiceInstance
| Field | Type | Default | |
|---|---|---|---|
config | ServiceConfig | ||
process | `asyncio.subprocess.Process | None` | None |
port | `int | None` | None |
#start_service
python
async def start_service(config: ServiceConfig, work_dir: Path) -> ServiceInstance#stop_service
python
async def stop_service(instance: ServiceInstance) -> None#check_health
python
async def check_health(instance: ServiceInstance) -> bool