summaryrefslogtreecommitdiffstats
path: root/src/orchestrator/orchestrator.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-11-09 16:16:21 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-11-09 16:16:21 +0100
commit88489330f735b93b6f6b45babfd600efc6841fa3 (patch)
treece919221fd1ae4da06985219a17a8646f055bb12 /src/orchestrator/orchestrator.rs
parentbfdc973e28399916c1dfd60b331c697ee97e18a6 (diff)
Report created packages at the end of orchestrator run
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/orchestrator/orchestrator.rs')
-rw-r--r--src/orchestrator/orchestrator.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/orchestrator/orchestrator.rs b/src/orchestrator/orchestrator.rs
index 5fee202..4b195a6 100644
--- a/src/orchestrator/orchestrator.rs
+++ b/src/orchestrator/orchestrator.rs
@@ -60,9 +60,10 @@ impl OrchestratorSetup {
impl Orchestrator {
- pub async fn run(self) -> Result<()> {
+ pub async fn run(self) -> Result<Vec<PathBuf>> {
use tokio::stream::StreamExt;
+ let mut report_result = vec![];
let number_of_jobsets = self.jobsets.len();
let _database = self.database;
@@ -172,10 +173,14 @@ impl Orchestrator {
.map_err(Error::from)
}
}
+
}
+
+ let mut results = results; // rebind!
+ report_result.append(&mut results);
}
- Ok(())
+ Ok(report_result)
}
}