From 92001f1bb592712956b924953cada1e2ea9a07e2 Mon Sep 17 00:00:00 2001 From: shenshuo <191715030@qq.com> Date: Thu, 11 Jul 2024 16:48:58 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B47=E6=9C=8811=E6=97=A5=20=20=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=A2=E5=8D=95=E7=8A=B6=E6=80=81=E5=B8=B8?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 2 +- websdk2/consts.py | 34 +++++++++++++++++++++------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/setup.py b/setup.py index 6ab38e1..d4dfe8e 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ import sys from distutils.core import setup -VERSION = '1.0.2' +VERSION = '1.0.3' if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 6): print('This program requires at least Python 2.7 or 3.6 to run.') diff --git a/websdk2/consts.py b/websdk2/consts.py index 47d4422..b814bf7 100644 --- a/websdk2/consts.py +++ b/websdk2/consts.py @@ -191,19 +191,27 @@ def __setattr__(self, name, value): ### 全局 二次认证 const.MFA_GLOBAL = 'MFA_GLOBAL' -### 任务状态 -const.STATE_NEW = '0' -const.STATE_WAIT = '1' -const.STATE_RUNNING = '2' -const.STATE_SUCCESS = '3' -const.STATE_ERROR = '4' -const.STATE_MANUAL = '5' -const.STATE_BREAK = '6' -const.STATE_TIMING = '7' -const.STATE_UNKNOWN = '8' -const.STATE_FAIL = '9' -const.STATE_IGNORE = '10' # 忽略 -const.STATE_QUEUE = '11' # 排队中 +# task event 状态 +const.STATE_NEW = '0' # 新建任务 +const.STATE_WAIT = '1' # 等待执行 +const.STATE_RUNNING = '2' # 正在运行 +const.STATE_SUCCESS = '3' # 成功完成 +const.STATE_ERROR = '4' # 发生错误 +const.STATE_MANUAL = '5' # 等待手动 +const.STATE_BREAK = '6' # 中止状态 //不区分手动和自动 +const.STATE_TIMING = '7' # 定时状态 +const.STATE_UNKNOWN = '8' # 未知状态 // debug +const.STATE_FAIL = '9' # 失败 // debug +const.STATE_IGNORE = '10' # 忽略执行 +const.STATE_QUEUE = '11' # 排队中 //订单和任务节点公用 +# 订单 状态 +const.ORDER_STATE_WAITING = '31' # 订单等待中 +const.ORDER_STATE_RUNNING = '32' # 订单执行中 +const.ORDER_STATE_SUCCESS = '33' # 订单成功 +const.ORDER_STATE_FAIL = '34' # 订单失败 +const.ORDER_STATE_WAITING_APPROVAL = '35' # 订单等待审批 +const.ORDER_STATE_TERMINATED = '39' # 订单终止 +const.ORDER_STATE_QUEUE = '11' # 订单排队中 const.EXEC_TIMEOUT = 1800 ## 节点地址