From f8321a6136d5906ff1f463ca6900c120cf995bb2 Mon Sep 17 00:00:00 2001 From: bellkeyang Date: Mon, 25 Jan 2021 10:41:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=A7=E8=A1=8Ccmd=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=8E=A5=E5=8F=A3=E7=9A=84=E6=89=80=E6=9C=89?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bcs/bcs/polling_task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bcs/bcs/polling_task.py b/bcs/bcs/polling_task.py index 517666a..5f9e9d6 100644 --- a/bcs/bcs/polling_task.py +++ b/bcs/bcs/polling_task.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- import time +import json from datetime import datetime, timedelta from .python_atom_sdk import * @@ -72,10 +73,10 @@ def command_polling(cc_app_id, project_id, instance_id, task_id): status_set = set(status_list) # 如果状态记录中只有一个finish状态, 并且是正常退出,则认为命令执行成功 if len(status_set) == 1 and list(status_set)[0] == constants.TASK_NORMAL_STATUS: + sdk.log.info(u"接口返回: %s" % (json.dumps(data))) sdk.log.info(u"命令执行成功!") break - # 设置间隔,默认为10s time.sleep(INTERVAL)