Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/open-ports' into endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cblmemo committed Jul 18, 2023
2 parents 10dbbdb + f3ffaaf commit f8c53ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sky/provision/gcp/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def cleanup_ports(
handler_to_instances = _filter_instances(handlers, project_id, zone,
name_filter, lambda _: None, None,
None)
assert len(handler_to_instances) == 1, handler_to_instances
# When launching process is interrupted, there may be no instances.
assert len(handler_to_instances) <= 1, handler_to_instances

for handler, instances in handler_to_instances.items():
# all instances should be in the same VPC
Expand Down

0 comments on commit f8c53ac

Please sign in to comment.