- Refactor internal/worker and internal/queue packages - Update cmd/tui for monitoring interface - Update test configurations
17 lines
404 B
Go
17 lines
404 B
Go
package domain
|
|
|
|
// JobStatus represents the status of a job
|
|
type JobStatus string
|
|
|
|
const (
|
|
StatusPending JobStatus = "pending"
|
|
StatusQueued JobStatus = "queued"
|
|
StatusRunning JobStatus = "running"
|
|
StatusCompleted JobStatus = "completed"
|
|
StatusFailed JobStatus = "failed"
|
|
)
|
|
|
|
// String returns the string representation of the status
|
|
func (s JobStatus) String() string {
|
|
return string(s)
|
|
}
|