swactor/apps/myelin/src/bin/orchestrator.rs
Zachery Aaron Shores-Chmielewski f67dcbbec1 feat(myelin): replace chat app with fleet daemon
Replace the single-purpose chat runtime with a persistent fleet daemon that provisions, adopts, and controls nodes through the dashboard.

Add distributed job-runner actors and provider-backed deployment so jobs can materialize workspaces, execute remotely, and return outputs over iroh.
2026-08-18 14:23:07 +04:00

16 lines
456 B
Rust

use std::process::ExitCode;
fn main() -> ExitCode {
let args = std::env::args().skip(1).collect::<Vec<_>>();
if args.as_slice() == [myelin::ORCHESTRATOR_WORKER_MODE_ARG] {
return myelin::run_worker_node_from_env();
}
match myelin::run_orchestrator_from_args(args) {
Ok(()) => ExitCode::SUCCESS,
Err(error) => {
eprintln!("myelin-orchestrator: {error}");
ExitCode::from(1)
}
}
}