Make access asynchronous #6

Open
opened 2025-10-17 03:44:38 +00:00 by khird · 1 comment
Member

The SDK methods at present are synchronous functions. This is particularly noticeable in the polling method, because instead of waiting for a single response from the server, it is sleeping for an extended period of time, but at higher load it may be important for the others. The SDK would ideally provide asynchronous coroutines for operations that wait for network IO.

Definition of done:

  • polling a job's completion is done asynchronously
  • other methods that send commands across the network should, if practical, also be asynchronous
The SDK methods at present are synchronous functions. This is particularly noticeable in the polling method, because instead of waiting for a single response from the server, it is sleeping for an extended period of time, but at higher load it may be important for the others. The SDK would ideally provide asynchronous coroutines for operations that wait for network IO. Definition of done: - polling a job's completion is done asynchronously - other methods that send commands across the network should, if practical, also be asynchronous
Author
Member

Brag's client is less feature-rich but may be useful as an example of how we implemented this asynchronously

[Brag's client](https://git.cleverthis.com/cleverbrag/cleverbrag-core/src/branch/hacky-demo/py/sdk/swarm_client.py) is less feature-rich but may be useful as an example of how we implemented this asynchronously
CoreRasurae added this to the v0.1 milestone 2025-10-27 16:05:09 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cleverlibre/cleverswarm-python-client#6
No description provided.