summaryrefslogtreecommitdiffstats
path: root/src/orchestrator
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-09 17:18:35 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-09 17:23:55 +0100
commite91869e46fc39e1a6e91dce5c603911fcaad10f5 (patch)
treeaceb1d697384347d6991b4d70f50a18a21f6ad15 /src/orchestrator
parent2205057859f8321496a8a800c242c6cd82fef168 (diff)
Fix weird rendering bug of progress bars
Apparently, this fixes the rendering bug we had with indicatif. The issue was, that we called `indicatif::ProgressBar::set_message()` before the bar was added to the `indicatif::MultiProgress` object. This caused the bar to be rendered, and as soon we added it to the MultiProgress object and re-called set_message(), it was rendered again. This is of course a bug / inconveniance in indicatif. Either way, the issue was solved by not calling `set_message()` in our `ProgressBars` helper object, but only return a preconfigured bar object. Because not calling the set_message() function yields the whole bunch of helper functions as unnecessary, these were removed and the interface was boiled down to `pub fn ProgressBars::bar(&self) -> indicatif::ProgressBar` which in turn results in a few modifications all over the place. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/orchestrator')
-rw-r--r--src/orchestrator/orchestrator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/orchestrator/orchestrator.rs b/src/orchestrator/orchestrator.rs
index eb03c0a..ef12a53 100644
--- a/src/orchestrator/orchestrator.rs
+++ b/src/orchestrator/orchestrator.rs
@@ -101,7 +101,7 @@ impl<'a> Orchestrator<'a> {
.await?
.into_iter()
.map(|runnable| {
- let bar = multibar.add(progress_generator.job_bar(runnable.uuid()));
+ let bar = multibar.add(progress_generator.bar());
Self::run_runnable(runnable, scheduler, bar)
})
.collect::<futures::stream::FuturesUnordered<_>>()