PsStatusEnum.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. namespace qdr.fnd.core.pqueue.Enums
  2. {
  3. public enum PsStatusEnum : int
  4. {
  5. /// <summary>
  6. /// Initial status of the queue item.
  7. /// This state can be moved to states: <see cref="Pending"/>
  8. /// </summary>
  9. New = 0,
  10. /// <summary>
  11. /// Enqueued item waiting for processing.
  12. /// This state can be moved to states: <see cref="Started"/>, <see cref="Expired"/>
  13. /// </summary>
  14. Pending = 1,
  15. /// <summary>
  16. /// Item started to processing.
  17. /// This state can be moved to states: <see cref="Pending"/>, <see cref="Paused"/>, <see cref="Stopped"/>
  18. /// <see cref="DoneOk"/>, <see cref="DoneFailed"/>, <see cref="Expired"/>
  19. /// </summary>
  20. Started = 2,
  21. /// <summary>
  22. /// Item is paused in processing and can be resumed with postponed time.
  23. /// This state can be moved to states: <see cref="Started"/>, <see cref="Stopped"/>, <see cref="Expired"/>
  24. /// </summary>
  25. Paused = 3,
  26. /// <summary>
  27. /// Item is stopped in processing and cannot be resumed.
  28. /// This state can be moved to states: <see cref="DoneFailed"/>, <see cref="Expired"/>
  29. /// </summary>
  30. Stopped = 4,
  31. /// <summary>
  32. /// Item is successfully processed. Final logical state.
  33. /// This state can be moved to states: <see cref="Deleted"/>
  34. /// </summary>
  35. DoneOk = 5,
  36. /// <summary>
  37. /// Item is failed in processing. Final logical state.
  38. /// This state can be moved to states: <see cref="Deleted"/>
  39. /// </summary>
  40. DoneFailed = 6,
  41. /// <summary>
  42. /// Item is expired and ready to delete.
  43. /// This state can be moved to states: <see cref="Deleted"/>
  44. /// </summary>
  45. Expired = 7,
  46. /// <summary>
  47. /// Item is ready to physical delete.
  48. /// This state technical final state.
  49. /// </summary>
  50. Deleted = 8
  51. }
  52. }