Skip to content

Commit

Permalink
VMCluster should name wokers based on SpecCluster new_worker_name() (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysommer committed Dec 8, 2021
1 parent 4d2d9ea commit f9c3272
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dask_cloudprovider/generic/vmcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ async def _start(
"options": self.scheduler_options,
}
self.new_spec = {"cls": self.worker_class, "options": self.worker_options}
self.worker_spec = {i: self.new_spec for i in range(self._n_workers)}
self.worker_spec = {
self._new_worker_name(i): self.new_spec for i in range(self._n_workers)
}

with warn_on_duration(
"10s",
Expand Down

0 comments on commit f9c3272

Please sign in to comment.