Skip to content
Snippets Groups Projects
Verified Commit 3f02cc39 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

swh.scheduler.api.client: Permit to specify the query timeout option

Related T1061
parent 2b660ca0
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ Build-Depends: debhelper (>= 9), ...@@ -15,7 +15,7 @@ Build-Depends: debhelper (>= 9),
python3-nose, python3-nose,
python3-psycopg2, python3-psycopg2,
python3-setuptools, python3-setuptools,
python3-swh.core (>= 0.0.38~), python3-swh.core (>= 0.0.40~),
python3-vcversioner python3-vcversioner
Standards-Version: 3.9.6 Standards-Version: 3.9.6
Homepage: https://forge.softwareheritage.org/diffusion/DSCH/ Homepage: https://forge.softwareheritage.org/diffusion/DSCH/
......
swh.core >= 0.0.38 swh.core >= 0.0.40
...@@ -21,8 +21,9 @@ class RemoteScheduler(SWHRemoteAPI): ...@@ -21,8 +21,9 @@ class RemoteScheduler(SWHRemoteAPI):
"""Proxy to a remote scheduler API """Proxy to a remote scheduler API
""" """
def __init__(self, url): def __init__(self, url, timeout=None):
super().__init__(api_exception=SchedulerAPIError, url=url) super().__init__(
api_exception=SchedulerAPIError, url=url, timeout=timeout)
def close_connection(self): def close_connection(self):
return self.post('close_connection', {}) return self.post('close_connection', {})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment