status.go 508 B

123456789101112131415161718
  1. package worker
  2. const (
  3. // JobStatusNew job status new
  4. JobStatusNew = "new"
  5. // JobStatusScheduled job status scheduled
  6. JobStatusScheduled = "scheduled"
  7. // JobStatusRunning job status running
  8. JobStatusRunning = "running"
  9. // JobStatusCancelled job status cancelled
  10. JobStatusCancelled = "cancelled"
  11. // JobStatusDone job status done
  12. JobStatusDone = "done"
  13. // JobStatusException job status exception
  14. JobStatusException = "exception"
  15. // JobStatusKilled job status killed
  16. JobStatusKilled = "killed"
  17. )