Skip to content

Commit 3e186fb

Browse files
committed
return True in Extension.async_cmd_check if async_cmd_info is set to False, which indicates that no asynchronous command was started
1 parent 60c5d15 commit 3e186fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

easybuild/framework/extension.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,17 @@ def async_cmd_check(self):
200200
"""
201201
if self.async_cmd_info is None:
202202
raise EasyBuildError("No installation command running asynchronously for %s", self.name)
203+
elif self.async_cmd_info is False:
204+
self.log.info("No asynchronous command was started for extension %s", self.name)
205+
return True
203206
else:
204207
self.log.debug("Checking on installation of extension %s...", self.name)
205208
# use small read size, to avoid waiting for a long time until sufficient output is produced
206209
res = check_async_cmd(*self.async_cmd_info, output_read_size=self.async_cmd_read_size)
207210
self.async_cmd_output += res['output']
208211
if res['done']:
209212
self.log.info("Installation of extension %s completed!", self.name)
213+
self.async_cmd_info = None
210214
else:
211215
self.async_cmd_check_cnt += 1
212216
self.log.debug("Installation of extension %s still running (checked %d times)",

0 commit comments

Comments
 (0)