- Simplified RunnerConfig to just name, command, and optional env - Removed RunnerType and ProcessManagerType enums - Removed db_path, redis_url, binary_path from config - Made runner name also serve as queue name (no separate queue param) - Added secret-based authentication to all runner management methods - Created comprehensive osiris_openrpc example - Archived old examples to _archive/ - Updated client API to match simplified supervisor interface
28 lines
921 B
Bash
Executable File
28 lines
921 B
Bash
Executable File
#!/bin/bash
|
|
# Run Hero Supervisor with OpenRPC server only (no Mycelium)
|
|
#
|
|
# This starts the supervisor with:
|
|
# - OpenRPC HTTP server on port 3030
|
|
# - Redis connection for job queuing
|
|
# - No Mycelium integration
|
|
#
|
|
# Usage:
|
|
# ./run_supervisor_simple.sh
|
|
|
|
echo "🚀 Starting Hero Supervisor (OpenRPC only)"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo " OpenRPC Server: http://localhost:3030"
|
|
echo " Redis: redis://localhost:6379"
|
|
echo " Mycelium: Disabled"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo ""
|
|
|
|
# Set environment variables
|
|
export RUST_LOG=info
|
|
export MYCELIUM_URL="" # Disable Mycelium
|
|
|
|
# Build and run
|
|
cargo run --bin supervisor --no-default-features --features cli -- \
|
|
--redis-url redis://localhost:6379 \
|
|
--port 3030
|