client
drunc.connectivity_service.client
Classes
ConnectivityServiceClient(session, address)
Source code in drunc/connectivity_service/client.py
Functions
is_ready(timeout=10)
Check if the service is ready by polling the connectivity service with an exponential backoff.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timeout
|
int
|
Maximum time in seconds to wait for the service to become ready |
10
|
Returns:
| Type | Description |
|---|---|
|
True if service becomes ready within timeout, False otherwise |
Source code in drunc/connectivity_service/client.py
retract_partition(fail_quickly=False, fail_quietly=False)
Retract the whole partition (session) from the connectivity service.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fail_quickly
|
bool
|
If True, the function will return immediately on failure without raising exceptions. Default is False. |
False
|
fail_quietly
|
bool
|
If True, the function will suppress all exceptions and log errors as warnings. Default is False. |
False
|