Start adding db download/upload, migrate graph to async/await
This commit is contained in:
@@ -174,9 +174,11 @@ impl Cli {
|
||||
let reader = BufReader::new(file);
|
||||
let graph = serde_json::from_reader(reader)?;
|
||||
let graph = RunnableGraph::from_graph(graph);
|
||||
// TODO: Possible to await here?
|
||||
graph.run_default_tasks(threads, |id, status| {
|
||||
info!("Node with id {} finished with status {:?}", id, status)
|
||||
})
|
||||
});
|
||||
Ok(())
|
||||
}
|
||||
Commands::GenerateSchema { output } => {
|
||||
let schema = schema_for!(Graph);
|
||||
|
||||
Reference in New Issue
Block a user