package service

const (
	SessionStatusLaunched  = "launched"
	SessionStatusRunning   = "running"
	SessionStatusFinished  = "finished"
	SessionStatusFailed    = "failed"
	SessionStatusCancelled = "cancelled"
)

func isSessionTerminalStatus(status string) bool {
	switch status {
	case SessionStatusFinished, SessionStatusFailed, SessionStatusCancelled:
		return true
	default:
		return false
	}
}

func isSessionOngoingStatus(status string) bool {
	switch status {
	case SessionStatusLaunched, SessionStatusRunning:
		return true
	default:
		return false
	}
}
