瀏覽代碼

增加更新工作流函数

xueyiming 2 周之前
父節點
當前提交
971cf0a6ec
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ad/pai_flow_operator2.py

+ 1 - 0
ad/pai_flow_operator2.py

@@ -527,6 +527,7 @@ def update_online_flow():
                 raise Exception("在处理节点属性时,字典中缺少必要的键")
         new_content = json.dumps(content_json, ensure_ascii=False)
         PAIClient.update_experiment_content(experiment_id, new_content, version)
+        return True
     except json.JSONDecodeError:
         raise Exception("JSON 解析错误,可能是草稿内容格式不正确")
     except Exception as e: