Skip to content

Commit

Permalink
fix Dag->Pipeline breakage it met_binary crate
Browse files Browse the repository at this point in the history
  • Loading branch information
intarga committed Oct 2, 2024
1 parent 3408219 commit 12d7349
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions met_binary/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ use met_connectors::Frost;
use met_connectors::LustreNetatmo;
use rove::{
data_switch::{DataConnector, DataSwitch},
dev_utils::construct_hardcoded_dag,
start_server,
load_pipelines, start_server,
};
use std::collections::HashMap;
use std::{collections::HashMap, path::Path};
use tracing::Level;

#[derive(Parser, Debug)]
Expand All @@ -16,6 +15,8 @@ struct Args {
address: String,
#[arg(short = 'l', long, default_value_t = Level::INFO)]
max_trace_level: Level,
#[arg(short, long, default_value_t = String::from("sample_pipeline/fresh"))]
pipeline_dir: String,
}

// TODO: use anyhow for error handling?
Expand All @@ -35,7 +36,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
start_server(
args.address.parse()?,
data_switch,
construct_hardcoded_dag(),
load_pipelines(Path::new(&args.pipeline_dir))?,
)
.await
}

0 comments on commit 12d7349

Please sign in to comment.