increase timeout for preparing books to 10 mins for very large books/slow machines

This commit is contained in:
Kovid Goyal 2022-07-31 21:17:31 +05:30
parent bfc2c86a52
commit 5de21eddab
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -31,7 +31,7 @@ def book_cache_dir():
def cache_lock():
return ExclusiveFile(os.path.join(book_cache_dir(), 'metadata.json'))
return ExclusiveFile(os.path.join(book_cache_dir(), 'metadata.json'), timeout=600)
def book_hash(path, size, mtime):