Skip to content

Commit

Permalink
feat(worker)!: add cu_ids to worker create (#82)
Browse files Browse the repository at this point in the history
* feat(worker): add cu_ids to worker create

* add docs

* add docs
  • Loading branch information
gurinderu authored Feb 19, 2024
1 parent f2665b0 commit 5414624
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions workers.aqua
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ import PeerId from "./builtin.aqua"

-- Available only on rust peers
service Worker("worker"):
-- Creates new worker associated with `deal_id`.
-- Throws an error if worker exists.
create(deal_id: string) -> PeerId
-- Creates new worker associated with `deal_id` and allows specifying custom `cu_ids`.
-- Arguments:
-- deal_id - ID of the deal
-- cu_ids – an array of target compute unit IDs
-- Returns: PeerId - worker ID if creation was successful
-- Throws an error if a worker exists.
create(deal_id: string, cu_ids: []string) -> PeerId

-- Returns worker peer id associated with `deal_id`.
-- Returns nil if worker doesn't exist.
Expand Down

0 comments on commit 5414624

Please sign in to comment.