Sets the http timeouts equal to the task timeout, so it's either done or really done

This commit is contained in:
Trenton Holmes
2023-08-23 17:37:23 -07:00
committed by Trenton H
parent 8f2715e437
commit fe1f88ce5d
2 changed files with 13 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ class TikaDocumentParser(DocumentParser):
files=files,
headers=headers,
data=data,
timeout=30.0,
timeout=settings.CELERY_TASK_TIME_LIMIT,
)
response.raise_for_status() # ensure we notice bad responses
except Exception as err: