Add option for customizing single-file timeout (#688)

* Promoting singlefile timeout to env variable

* Promoting singlefile timeout to env variable

* add tests

---------

Co-authored-by: Sascha Ißbrücker <sascha.issbruecker@gmail.com>
This commit is contained in:
pettijohn
2024-04-07 11:21:59 -07:00
committed by GitHub
parent 5e8f5b2c58
commit 2d22d6871e
4 changed files with 31 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ def create_snapshot(url: str, filepath: str):
try:
# Use start_new_session=True to create a new process group
process = subprocess.Popen(args, start_new_session=True)
process.wait(timeout=60)
process.wait(timeout=settings.LD_SINGLEFILE_TIMEOUT_SEC)
# check if the file was created
if not os.path.exists(temp_filepath):