manager
manager
¶
Operator manager — lifecycle management for autonomous operators.
Classes¶
OperatorManager
¶
Manages operator manifests and their lifecycle via the TaskScheduler.
| PARAMETER | DESCRIPTION |
|---|---|
system
|
A
TYPE:
|
Source code in src/openjarvis/operators/manager.py
Attributes¶
Functions¶
register
¶
register(manifest: OperatorManifest) -> None
discover
¶
discover(directory: str | Path) -> List[OperatorManifest]
Discover and register operator manifests from a directory.
Scans for *.toml files in directory and loads each as an
operator manifest.
Source code in src/openjarvis/operators/manager.py
activate
¶
Activate an operator by creating a scheduler task.
Returns the scheduler task ID (deterministic: operator:{id}).
Raises KeyError if the operator is not registered, or
RuntimeError if the scheduler is not available.
Source code in src/openjarvis/operators/manager.py
deactivate
¶
Deactivate an operator by cancelling its scheduler task.
Source code in src/openjarvis/operators/manager.py
pause
¶
Pause an active operator.
Source code in src/openjarvis/operators/manager.py
resume
¶
Resume a paused operator.
Source code in src/openjarvis/operators/manager.py
status
¶
Return status of all registered operators.
Merges manifest info with scheduler task state.
Source code in src/openjarvis/operators/manager.py
run_once
¶
Execute a single tick of an operator immediately.
Useful for development and testing. Returns the agent's response.
Source code in src/openjarvis/operators/manager.py
get_manifest
¶
get_manifest(operator_id: str) -> Optional[OperatorManifest]