Parcourir la source

从腾讯云获取脚本时,休眠等待时间由60s 修改为 10s

liyuyi@c-top.com.cn il y a 4 ans
Parent
commit
bc2c202182
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      get_script_from_tengxunyun.py

+ 1 - 1
get_script_from_tengxunyun.py

@@ -62,7 +62,7 @@ class GetScriptFromTengXunYunServer(object):
                 break
             else:
                 self.logger.info("从腾讯云获取脚本, 休眠一分钟,等待腾讯云任务计算完成。")
-                time.sleep(60 * 1)
+                time.sleep(10 * 1)
 
             for task_id in task_status_df.task_id.values:
                 request_data = {'task_id': task_id}