Skip to content

Commit

Permalink
Merge pull request #1723 from laws-africa/citator-timeout
Browse files Browse the repository at this point in the history
bump timeout; the p100 recently is 7 mins for very large docs
  • Loading branch information
longhotsummer authored Feb 12, 2024
2 parents 29626d0 + 98fd908 commit f6f1070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peachjam/analysis/citations.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def extract_text_matches(self, frbr_uri, text):
def call_citator(self, body):
headers = {"Authorization": f"token {self.citator_key}"}
resp = requests.post(
self.citator_url, json=body, headers=headers, timeout=60 * 5
self.citator_url, json=body, headers=headers, timeout=60 * 10
)
resp.raise_for_status()
return resp.json()
Expand Down

0 comments on commit f6f1070

Please sign in to comment.