Skip to content

Commit 83a26c8

Browse files
committed
also update extensions progress bar when installing extensions in parallel
1 parent a1cf735 commit 83a26c8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

easybuild/framework/easyblock.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,6 +1733,8 @@ def install_extensions_parallel(self, install=True):
17331733
exts_cnt = len(all_ext_names)
17341734
exts_queue = self.ext_instances[:]
17351735

1736+
start_progress_bar(PROGRESS_BAR_EXTENSIONS, exts_cnt)
1737+
17361738
iter_id = 0
17371739
while exts_queue or running_exts:
17381740

@@ -1750,6 +1752,9 @@ def install_extensions_parallel(self, install=True):
17501752
ext.postrun()
17511753
running_exts.remove(ext)
17521754
installed_ext_names.append(ext.name)
1755+
1756+
progress_label = "Installing extensions: %s" % ' '.join(e.name for e in running_exts)
1757+
update_progress_bar(PROGRESS_BAR_EXTENSIONS, label=progress_label)
17531758
else:
17541759
self.log.debug("Installation of %s is still running...", ext.name)
17551760

@@ -1811,7 +1816,12 @@ def install_extensions_parallel(self, install=True):
18111816
ext.prerun()
18121817
ext.run(asynchronous=True)
18131818
running_exts.append(ext)
1814-
self.log.debug("Started installation of extension %s in the background...", ext.name)
1819+
self.log.info("Started installation of extension %s in the background...", ext.name)
1820+
1821+
progress_label = "Installing extensions: %s" % ' '.join(e.name for e in running_exts)
1822+
update_progress_bar(PROGRESS_BAR_EXTENSIONS, label=progress_label, progress_size=0)
1823+
1824+
stop_progress_bar(PROGRESS_BAR_EXTENSIONS, visible=False)
18151825

18161826
#
18171827
# MISCELLANEOUS UTILITY FUNCTIONS

0 commit comments

Comments
 (0)