Skip to content

Commit

Permalink
increase timeout of code/pseudo setup to 300 (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Apr 27, 2024
1 parent a6ca843 commit a8af7de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aiidalab_qe/common/setup_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def install(force=False):
except Timeout:
# Assume that the installation was triggered by a different process.
yield "Installation was already started, waiting for it to finish..."
with FileLock(FN_LOCKFILE, timeout=120):
with FileLock(FN_LOCKFILE, timeout=300):
if not codes_are_setup():
raise RuntimeError(
"Installation process did not finish in the expected time."
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/common/setup_pseudos.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def install(
"Installation was already started elsewhere, waiting for it to finish...",
ProgressBar.AnimationRate(1.0),
)
with FileLock(FN_LOCKFILE, timeout=120):
with FileLock(FN_LOCKFILE, timeout=300):
if len(pseudos_to_install()) > 0:
raise RuntimeError(
"Installation process did not finish in the expected time."
Expand Down

0 comments on commit a8af7de

Please sign in to comment.