您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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, "失败")