1.1 KiB
1.1 KiB
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