baobab/core/supervisor/cmd
2025-08-05 12:19:38 +02:00
..
hive_supervisor_tui_safe.rs refactor wip 2025-08-05 12:19:38 +02:00
README.md refactor wip 2025-08-05 12:19:38 +02:00
supervisor.rs wip 2025-08-01 00:01:08 +02:00

Supervisor CLI

A command-line interface for the Hero Supervisor.

Binary: hive-supervisor

Installation

Build the binary:

cargo build --bin hive-supervisor --release

Usage

# Basic usage
hive-supervisor --config <CONFIG_PATH>

Where config is toml file with the following structure:

[global]
redis_url = "redis://localhost:6379"

[osis_worker]
binary_path = "/path/to/osis_worker"
env_vars = { "VAR1" = "value1", "VAR2" = "value2" }

[sal_worker]
binary_path = "/path/to/sal_worker"
env_vars = { "VAR1" = "value1", "VAR2" = "value2" }

[v_worker]
binary_path = "/path/to/v_worker"
env_vars = { "VAR1" = "value1", "VAR2" = "value2" }

[python_worker]
binary_path = "/path/to/python_worker"
env_vars = { "VAR1" = "value1", "VAR2" = "value2" }

Lets have verbosity settings etc. CLI Offers a few commands:

workers: start stop restart status logs list

jobs: create start stop restart status logs list

repl: you can enter interactive mode to run scripts, however predefine caller_id, context_id and worker type so supervisor dispathces jobs accordingly