update_manager: Add 5 minute timeout to env build

This should remove the necessity of waiting after the shell command.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine committed 2020-11-29 07:14:21 -05:00
1 parent 290be28dae
commit e2a8a9b49f
1 file changed
+1 -2
+1 -2
View File
@@ -355,11 +355,10 @@ class GitUpdater:
shutil.rmtree(env_path)
try:
await self.execute_cmd(
f"virtualenv {env_args} {env_path}")
f"virtualenv {env_args} {env_path}", timeout=300.)
except Exception:
self._log_exc(f"Error creating virtualenv")
return
await tornado.gen.sleep(.5)
if not os.path.expanduser(self.env):
raise self._log_exc("Failed to create new virtualenv", False)
reqs = os.path.join(