summaryrefslogtreecommitdiffstats
path: root/src/orchestrator/orchestrator.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-02-08 09:28:16 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-02-08 09:37:18 +0100
commit32a2a808188ab06032932befc17d4711492ff8d1 (patch)
tree995043fdbb86df5e0fbedd3b74cd9e0a5b196f74 /src/orchestrator/orchestrator.rs
parent223f6dffee378648ecb3c5c8502fb9726bb454b9 (diff)
Fix: Make sure to finish the progress bar before returning
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/orchestrator/orchestrator.rs')
-rw-r--r--src/orchestrator/orchestrator.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/orchestrator/orchestrator.rs b/src/orchestrator/orchestrator.rs
index 11233fe..4d47ddb 100644
--- a/src/orchestrator/orchestrator.rs
+++ b/src/orchestrator/orchestrator.rs
@@ -471,6 +471,10 @@ impl<'a> JobTask<'a> {
self.sender[0].send(Err(received_errors)).await;
// ... and stop operation, because the whole tree will fail anyways.
+ self.bar.finish_with_message(&format!("[{} {} {}] Stopping, errors from child received",
+ self.jobdef.job.uuid(),
+ self.jobdef.job.package().name(),
+ self.jobdef.job.package().version()));
return Ok(())
}
}