File tree Expand file tree Collapse file tree
src/dstack/_internal/cli/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 TerminationPolicy ,
1313)
1414from dstack ._internal .core .models .runs import (
15- Job ,
1615 RunPlan ,
1716)
1817from dstack ._internal .core .services .profiles import get_termination
@@ -211,18 +210,3 @@ def get_runs_table(
211210 add_row_from_dict (table , job_row , style = "secondary" if len (run .jobs ) != 1 else None )
212211
213212 return table
214-
215-
216- def _get_run_error (run : Run ) -> str :
217- return run ._run .error or ""
218-
219-
220- def _get_job_error (job : Job ) -> str :
221- job_submission = job .job_submissions [- 1 ]
222- termination_reason = job_submission .termination_reason
223- exit_status = job_submission .exit_status
224- if termination_reason is None :
225- return ""
226- if exit_status :
227- return f"{ termination_reason .name } { exit_status } "
228- return termination_reason .name
You can’t perform that action at this time.
0 commit comments