archive unused / old code

This commit is contained in:
Timur Gordon
2025-08-05 12:59:02 +02:00
parent cd47d398de
commit 8ec7e70edf
25 changed files with 2 additions and 46 deletions

View File

@@ -1,66 +0,0 @@
# Supervisor CLI
A command-line interface for the Hero Supervisor.
## Binary: `hive-supervisor`
### Installation
Build the binary:
```bash
cargo build --bin hive-supervisor --release
```
### Usage
```bash
# Basic usage
hive-supervisor --config <CONFIG_PATH>
```
Where config is toml file with the following structure:
```toml
[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