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.
16 lines
456 B
Rust
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)
|
|
}
|
|
}
|
|
}
|