server/processes/registry.py
Dynamic process registration and lifecycle management for background runtime work.
What it does
Dynamic process registration and lifecycle management for background runtime work.
Key responsibilities
- Defines a shared ProcessDef dataclass to describe process metadata and lifecycle hooks.
- Discovers registered process modules from a static list and imports them dynamically.
- Exposes helpers to list available processes and to start/stop lifecycle-managed processes.
- Handles reverse-order shutdown to avoid dependency issues during cleanup.
- Supports scheduler-integrated processes and explicit start/stop hooks for runtime behavior.
Related files
Explore other files in the Backend category.