Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(worker)!: add cu_ids to worker create #82

Merged
merged 3 commits into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
gurinderu marked this conversation as resolved.
Show resolved Hide resolved

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