QueueStatusEnum.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. namespace Quadarax.Application.QLiberace.Processor.Enums
  2. {
  3. public enum QueueStatusEnum
  4. {
  5. /// <summary>
  6. /// Task is active pending to process, not yet assigned to worker. Initial state
  7. /// </summary>
  8. Pending = 0,
  9. /// <summary>
  10. /// Task is assigned to worker
  11. /// </summary>
  12. Assigned = 1,
  13. /// <summary>
  14. /// Task is processing by worker
  15. /// </summary>
  16. Working = 2,
  17. /// <summary>
  18. /// Task is done with success
  19. /// </summary>
  20. Success = 3,
  21. /// <summary>
  22. /// Task is done with error
  23. /// </summary>
  24. Failed = 4,
  25. /// <summary>
  26. /// Task is expired by error or attempts
  27. /// </summary>
  28. Expired = 5,
  29. /// <summary>
  30. /// Task is mark for deletion
  31. /// </summary>
  32. Deleted = 6,
  33. /// <summary>
  34. /// Task is inactive, not included for processing or deleting
  35. /// </summary>
  36. Disabled = 7
  37. }
  38. }