Skip to content

Commit

Permalink
re-add impl for override_worker_cpu_count
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv Garg committed Nov 23, 2024
1 parent e76c3fc commit 5891dc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rpc/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,8 @@ async def RegisterWorker(self, request, context):
cpu_resource = Resource(name="Slot")
worker_resources = Resources(
resource_vector={
# TODO(elton): handle override worker cpu count?
# cpu_resource: request.cores,
cpu_resource: 640,
cpu_resource: request.cores if not FLAGS.override_worker_cpu_count
else 640
},
_logger=self._logger,
)
Expand Down

0 comments on commit 5891dc3

Please sign in to comment.