From 9cb581bb4951ab27ce04136042fc1bd673519556 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Mon, 5 Sep 2022 17:11:15 +0200 Subject: [PATCH] Update use of `parallel` in parallel extension installation Migrate from `self.cfg['parallel']` to `self.cfg.parallel` --- easybuild/framework/easyblock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easybuild/framework/easyblock.py b/easybuild/framework/easyblock.py index 6ebe83862a..256110051b 100644 --- a/easybuild/framework/easyblock.py +++ b/easybuild/framework/easyblock.py @@ -1861,7 +1861,7 @@ def skip_extensions_parallel(self, exts_filter): self.update_exts_progress_bar(exts_pbar_label) # start additional checks asynchronously - while exts_queue and len(running_checks_ids) < self.cfg['parallel']: + while exts_queue and len(running_checks_ids) < self.cfg.parallel: idx, ext = exts_queue.pop(0) cmd, stdin = resolve_exts_filter_template(exts_filter, ext) async_cmd_info_cache[idx] = run_cmd(cmd, log_all=False, log_ok=False, simple=False, inp=stdin, @@ -2024,7 +2024,7 @@ def update_exts_progress_bar_helper(running_exts, progress_size): for _ in range(max_iter): - if not (exts_queue and len(running_exts) < self.cfg['parallel']): + if not (exts_queue and len(running_exts) < self.cfg.parallel): break # check whether extension at top of the queue is ready to install