nicholas_van_kuren
11/17/2022, 7:07 PMDEFAULT_REQUEST_TIMEOUT
to override, but again not sure where in the code I should set this. Thanks!Reuben (Matatika)
11/17/2022, 11:57 PMThe default timeout is 300 seconds, or as defined by DEFAULT_REQUEST_TIMEOUT.
DEFAULT_REQUEST_TIMEOUT
is a constant defined in the SDK source. To override the default timeout inherited from RESTStream
, you need to supply the timeout
property in your stream class (can be done in 2 different ways):
client.py
class CustomStream(RESTStream):
# static override of 3 minutes (180s)
timeout = 180
# dynamic override from config `timeout` value, or fallback to SDK default from `RESTStream`
@property
def timeout(self) -> int:
return self.config.get("timeout", super().timeout)
nicholas_van_kuren
11/18/2022, 4:29 PM