Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more sky resource properties to cluster launched properties #1246

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions runhouse/resources/hardware/on_demand_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,21 @@ def _populate_connection_from_status_dict(self, cluster_dict: Dict[str, Any]):
instance_type = launched_resource.instance_type
region = launched_resource.region
cost_per_hr = launched_resource.get_cost(60 * 60)
disk_size = launched_resource.get("disk_size")
num_cpus = launched_resource.cpus

self.launched_properties = {
"cloud": cloud,
"instance_type": instance_type,
"region": region,
"cost_per_hour": str(cost_per_hr),
"disk_size": disk_size,
"num_cpus": num_cpus,
}
if launched_resource.accelerators:
self.launched_properties[
"accelerators"
] = launched_resource.accelerators
if handle.ssh_user:
self.launched_properties["ssh_user"] = handle.ssh_user
if handle.docker_user:
Expand Down
Loading