unlink_clusters
Applicability
Product |
Supported (√/x) |
|---|---|
Atlas 350 Accelerator Card |
x |
√ |
|
√ |
|
x |
|
x |
|
x |
Note: For
Function Description
Disconnects a link unilaterally. The request can be initiated by the client to notify the server of disconnection. Alternatively, both the client and server can initiate forcible disconnection to clean up only local links.
Prototype
1 | unlink_clusters(clusters: Union[List[LLMClusterInfo], Tuple[LLMClusterInfo]], timeout=3000, force=False) |
Parameters
Parameter |
Data Type |
Description |
|---|---|---|
clusters |
Union[List[LLMClusterInfo], Tuple[LLMClusterInfo]] |
Cluster list. |
timeout |
int |
Timeout interval, in milliseconds. The default timeout interval is 3000 ms. |
force |
bool |
Whether to forcibly disconnect the link. The default value is False. True indicates forcible disconnection.
|
Example
Click GitCode, select the matching version, and obtain the sample from the examples/python directory.
Returns
In normal cases, a tuple of two values is returned. The first value is the return value of the API, and the type is LLMStatusCode. The second value is the list of link establishment results of each cluster, and the type is LLMStatusCode.
If a parameter is incorrect, a TypeError or ValueError may be thrown.
Restrictions
None