소스 검색

增加更新工作流函数

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: