mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00
[tune/release] Do not use spot instances in k8s tests (#27250)
Spot instances are not being booted up, so let's go without them. Signed-off-by: Kai Fricke <kai@anyscale.com>
This commit is contained in:
parent
a9697722cf
commit
149c031c4b
3 changed files with 6 additions and 4 deletions
|
@ -157,7 +157,9 @@ def _get_checkpoint_from_remote_node(
|
|||
)
|
||||
return None
|
||||
fut = _serialize_checkpoint.options(
|
||||
resources={f"node:{node_ip}": 0.01}, num_cpus=0
|
||||
resources={f"node:{node_ip}": 0.01},
|
||||
num_cpus=0,
|
||||
scheduling_strategy="DEFAULT",
|
||||
).remote(checkpoint_path)
|
||||
try:
|
||||
checkpoint_data = ray.get(fut, timeout=timeout)
|
||||
|
|
|
@ -12,4 +12,4 @@ worker_node_types:
|
|||
instance_type: n2-standard-8
|
||||
min_workers: 3
|
||||
max_workers: 3
|
||||
use_spot: true
|
||||
use_spot: false
|
||||
|
|
|
@ -99,11 +99,11 @@ class TrialStub:
|
|||
|
||||
@property
|
||||
def hostname(self):
|
||||
return self.last_result["hostname"]
|
||||
return self.last_result.get("hostname")
|
||||
|
||||
@property
|
||||
def node_ip(self):
|
||||
return self.last_result["node_ip"]
|
||||
return self.last_result.get("node_ip")
|
||||
|
||||
@property
|
||||
def dirname(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue