You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support _request_timeout in dynamic client watch() #2533
api = self._client.resources.get(
api_version=self._api_version,
kind=self._kind
)
for event in api.watch(
timeout=server_timeout_seconds,
)
there is currently no way to configure a client-side request timeout (_request_timeout).
Current Workaround
To enforce a client-side timeout, we have to bypass Resource.watch() and directly use Watch().stream():
for raw_event in Watch().stream(
api.get,
serialize=False,
deserialize=False,
timeout_seconds=self._server_timeout_seconds,
_request_timeout=self._client_timeout_seconds,
)
Should the _request_timeout parameter in Resource.watch() be designed to accept a tuple for separate connect and read timeouts, or should it be a single integer that applies to both?
Activity
[-]Support _request_timeout in dynamic client watch() API[/-][+]Support _request_timeout in dynamic client watch()[/+]Polimixanos commentedon Apr 21, 2026
Can I work on this?
roycaihw commentedon Apr 23, 2026
/assign @Polimixanos
roycaihw commentedon Apr 23, 2026
cc @fabianvf
santiagorojas14 commentedon Aug 19, 2026
Should the
_request_timeoutparameter inResource.watch()be designed to accept a tuple for separate connect and read timeouts, or should it be a single integer that applies to both?absolutegar commentedon Sep 28, 2026
We should probably define
_request_timeout=Noneexplicitly inResource.watch()'s signature and pass