[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:
Kai Fricke 2022-08-02 11:30:41 +01:00 committed by GitHub
parent a9697722cf
commit 149c031c4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -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)

View file

@ -12,4 +12,4 @@ worker_node_types:
instance_type: n2-standard-8
min_workers: 3
max_workers: 3
use_spot: true
use_spot: false

View file

@ -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):