ark_async_request
ArkAsyncRequest
¶
Bases: ABC
Source code in ark_sdk_python/common/ark_async_request.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
is_finished()
abstractmethod
¶
Checks whether or not the current async request has finished.
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
description |
Source code in ark_sdk_python/common/ark_async_request.py
16 17 18 19 20 21 22 23 |
|
poll(timeout_seconds, progress_callback)
abstractmethod
¶
Polls the async request until it has completed. Progress callbacks can also be used to return the async request's status.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
timeout_seconds |
int
|
description |
required |
progress_callback |
Callable[[ArkAsyncTask, int, ArkAsyncStatus], None]
|
description |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
description |
Source code in ark_sdk_python/common/ark_async_request.py
43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
task_failed()
abstractmethod
¶
Checks whether or the current async request failed.
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
description |
Source code in ark_sdk_python/common/ark_async_request.py
25 26 27 28 29 30 31 32 |
|
task_timeout()
abstractmethod
¶
Checks whether or not the current async request has timed out.
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
description |
Source code in ark_sdk_python/common/ark_async_request.py
34 35 36 37 38 39 40 41 |
|