qued 92ddf3a337
feat: enable request timeout (#2013)
Courtesy @cdpierse.

Adds a test to PR #1529 in accordance with feedback.

Description from original PR:

In python the default behaviour of `requests.get` without a `timeout`
being set is to hang indefinitely. We have a production use case where
the desired behaviour would be to raise a timeout error rather than have
the application just hang.

This PR adds a new optional keyword parameter `request_timeout` to
`partition` which is passed to `file_and_type_from_url` in the case
where we are fetching from a URL. This is then passed to `requests.get`

---------

Co-authored-by: Charles Pierse <charlespierse@gmail.com>
2023-11-08 00:44:58 +00:00
..
2023-10-26 12:22:40 -05:00
2023-10-30 14:09:46 +00:00
2023-10-24 00:11:53 +00:00
2023-11-01 17:44:55 -05:00
2023-10-24 00:11:53 +00:00
2023-11-01 17:44:55 -05:00