HewlettPackard / swarm-learning

A simplified library for decentralized, privacy preserving machine learning
Apache License 2.0
333 stars 101 forks source link

Python SWCI-API function missing for targeted execution #241

Closed haschul closed 6 months ago

haschul commented 7 months ago

the python SWCI-API the assignTask() implements only ASSIGN TASK TO WITH PEERS https://github.com/HewlettPackard/swarm-learning/blob/58c309b41a4f365eeb6bcba6d2c9f574e3f655ff/lib/src/python-client/swarmlearning/swci.py#L375

The SWCI Command Line implements also targeted execution.

ASSIGN TASK <taskName> TO <taskRunnerName> TARGET <SWOP-UID>    Assigns a task to a taskrunner instance to target only specified SWOP peer. This triggers targeted SWOP to execute this task

- taskName: Specifies the unique name of task.
- trName: Specifies the unique name of Taskrunner.
- TARGET <SWOP-UID>: Specifies UID of the SWOP peer that will execute this task. User can get the UID of the SWOP from the list nodes output.

can you please add the TaskRunner function ASSIGN TASK TO TARGET also to the SWCI-API client?