Skip to content

Commit

Permalink
Use executors in WorkerManagerClient lock call
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Michaud committed Aug 23, 2024
1 parent b601439 commit eaa02bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/saturn_engine/client/worker_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ def __init__(

async def lock(self) -> LockResponse:
lock_url = urlcat(self.base_url, "api/lock")
json = asdict(LockInput(worker_id=self.worker_id, selector=self.selector))
json = asdict(
LockInput(
worker_id=self.worker_id,
selector=self.selector,
executors=self.executors,
)
)
async with self.http_client.post(lock_url, json=json) as response:
return fromdict(await response.json(), LockResponse)

Expand Down

0 comments on commit eaa02bb

Please sign in to comment.