We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac94058 commit 0c2570fCopy full SHA for 0c2570f
1 file changed
wherobots/db/driver.py
@@ -46,6 +46,7 @@ def connect(
46
region: Region = None,
47
wait_timeout: float = DEFAULT_SESSION_WAIT_TIMEOUT_SECONDS,
48
read_timeout: float = DEFAULT_READ_TIMEOUT_SECONDS,
49
+ shutdown_after_inactive_seconds: Union[int, None] = None,
50
results_format: Union[ResultsFormat, None] = None,
51
data_compression: Union[DataCompression, None] = None,
52
geometry_representation: Union[GeometryRepresentation, None] = None,
@@ -81,7 +82,10 @@ def connect(
81
82
resp = requests.post(
83
url=f"{host}/sql/session",
84
params={"region": region.value},
- json={"runtimeId": runtime.value},
85
+ json={
86
+ "runtimeId": runtime.value,
87
+ "shutdownAfterInactiveSeconds": shutdown_after_inactive_seconds,
88
+ },
89
headers=headers,
90
)
91
resp.raise_for_status()
0 commit comments