mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[ci/multinode] Fix resource popping resulting in empty resource head nodes (#21531)
Fixes a small bug where we pop from the resources dict without making a copy, emptying the head node resources. This sometimes leads to empty head node resources.
This commit is contained in:
parent
d2d749b6f9
commit
084bda87a5
1 changed files with 2 additions and 0 deletions
|
@ -268,6 +268,8 @@ class FakeMultiNodeProvider(NodeProvider):
|
|||
raise AssertionError("Readonly node provider cannot be updated")
|
||||
|
||||
def create_node_with_resources(self, node_config, tags, count, resources):
|
||||
resources = resources.copy()
|
||||
|
||||
with self.lock:
|
||||
node_type = tags[TAG_RAY_USER_NODE_TYPE]
|
||||
next_id = self._next_hex_node_id()
|
||||
|
|
Loading…
Add table
Reference in a new issue