You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 年之前
123456789101112131415161718192021222324252627282930313233
  1. from enum import Enum, unique
  2. @unique
  3. class PushStreamStatus(Enum):
  4. WAITING = (5, "待推流")
  5. RETRYING = (10, "重试中")
  6. RUNNING = (15, "推流中")
  7. STOPPING = (20, "停止中")
  8. SUCCESS = (25, "完成")
  9. TIMEOUT = (30, "超时")
  10. FAILED = (35, "失败")
  11. @unique
  12. class ExecuteStatus(Enum):
  13. WAITING = (5, "待执行")
  14. RUNNING = (10, "执行中")
  15. STOPPING = (15, "停止中")
  16. SUCCESS = (20, "执行完成")
  17. TIMEOUT = (25, "超时")
  18. FAILED = (30, "失败")