dstack
dstack copied to clipboard
[UI]: Instance details page + Link from run/job to instance
Problem
Users cannot find out which instance a particular job is running on. Knowing the exact instance can be useful in many cases, such as terminating an underperforming instance.
While there is the "Instance ID" field in the "General" section of the run or job details page, it does not really help identify the instance, because it contains a backend-specific ID that is not displayed elsewhere in the dstack UI.
Solution
- Introduce a page with instance details. Should contain the same fields as the "Instances" list page and a button to terminate the instance.
- From the run details page (for single-job runs) and the job details page (for multi-job runs), link to the instance details page of the instance the run/job is provisioned on.
- Also link to the instance details from the "Instances" list page. For example, from the "Instance num" column.
Implementation note
Requires changes on the backend:
- Introduce
/api/project/{project_name}/instances/get. - Return the
dstackinstance UUID (not the backend-specific ID) in the job object in/api/project/{project_name}/runs/get.
Workaround
No response
Would you like to help us implement this feature by sending a PR?
Yes