kermitt2 / grobid_client_python

Python client for GROBID Web services
Apache License 2.0
281 stars 74 forks source link

Add a timeout at client requests #34

Closed kermitt2 closed 3 years ago

kermitt2 commented 3 years ago

Add a timeout at the client requests call, default is 60s. This avoids blocking a batch too long when a document takes ages to be processed by Grobid. Note that this timeout does not stops the server task, it just stops waiting for a response from the server.