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
khird added the
Type
Feature
State
Unverified
labels 2025-10-17 03:44:38 +00:00
CoreRasurae added
State
Verified
and removed
State
Unverified
labels 2025-10-27 15:47:59 +00:00
CoreRasurae added the
Points
13
Priority
High
labels 2025-10-27 15:55:51 +00:00
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
CoreRasurae added this to the Sprint 0ct 15-28th project 2025-10-27 16:05:15 +00:00
CoreRasurae added
Priority
Backlog
and removed
Priority
High
labels 2025-10-29 22:01:15 +00:00
CoreRasurae removed this from the Sprint 0ct 15-28th project 2025-10-29 22:01:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleverlibre/cleverswarm-python-client#6