Skip to content

Commit

Permalink
Update use of parallel in parallel extension installation
Browse files Browse the repository at this point in the history
Migrate from `self.cfg['parallel']` to `self.cfg.parallel`
  • Loading branch information
Flamefire committed Jul 17, 2024
1 parent b132b34 commit 9cb581b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9cb581b

Please sign in to comment.