Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions cmd/lk/simulate.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,12 @@ func isTerminalRunStatus(status livekit.SimulationRun_Status) bool {
status == livekit.SimulationRun_STATUS_CANCELLED
}

// isTerminalJobStatus reports whether a job will never change again.
func isTerminalJobStatus(status livekit.SimulationRun_Job_Status) bool {
return status == livekit.SimulationRun_Job_STATUS_COMPLETED ||
status == livekit.SimulationRun_Job_STATUS_FAILED
}

// dashboardBaseURL returns the cloud dashboard URL, derived from the API
// server URL so that --server-url (e.g. staging) is respected without a
// separate flag. The cloud API and dashboard hosts differ only by "-api":
Expand Down
Loading
Loading