Skip to content

Commit 5e1a04c

Browse files
committed
Add force=restart option
1 parent daafa06 commit 5e1a04c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core_client/base/api/v3_cluster_process_put.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def _build_request(
1212
id: str,
1313
config: ProcessConfig,
1414
domain: str = "",
15+
force: str = None,
1516
retries: int = None,
1617
timeout: float = None,
1718
):
@@ -23,7 +24,7 @@ def _build_request(
2324
timeout = client.timeout
2425
return {
2526
"method": "put",
26-
"url": f"{client.base_url}/api/v3/cluster/process/{id}?domain={domain}",
27+
"url": f"{client.base_url}/api/v3/cluster/process/{id}?domain={domain}&force={force}",
2728
"headers": client.headers,
2829
"timeout": timeout,
2930
"data": None,

0 commit comments

Comments
 (0)