Files
threshold/internal/scheduler/job/status.go
T

26 lines
616 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package job
type Status string
const (
// Running represents that the job run is actively running on a server
Running Status = "running"
// Completed represents that the job run has successfully finished
Completed Status = "completed"
// Failed represent that the job run had an error during execution
Failed Status = "failed"
// Interrupted represents that the job run was interrupted by a server
// other than the server running the job.
Interrupted Status = "interrupted"
)
func (s Status) string() string {
return string(s)
}