From 88489330f735b93b6f6b45babfd600efc6841fa3 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 9 Nov 2020 16:16:21 +0100 Subject: Report created packages at the end of orchestrator run Signed-off-by: Matthias Beyer --- src/orchestrator/orchestrator.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/orchestrator') 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> { 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) } } -- cgit v1.2.3