Files
threshold/internal/scheduler/job/status.go
T
Louis Ruch feb5d7385d Louis job scheduler (#1197)
* Adds job repo
* Adds scheduler
* Adds plugin table which is a place holder for future expansion of the scheduler. Currently all jobs that are created are linked to the pi_system plugin which are jobs that are held in a local registeredJobs map populated at controller startup.
2021-05-06 14:54:10 -07:00

23 lines
546 B
Go

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)
}