From c17a09d641a88ae7778259dceeb65eaabedeb023 Mon Sep 17 00:00:00 2001 From: xfan0805 Date: Wed, 13 Nov 2024 15:56:01 +0800 Subject: [PATCH] fix: change_job_timeout_of_mysql_open_area #7940 --- .../flow/engine/bamboo/scene/mysql/mysql_open_area_flow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbm-ui/backend/flow/engine/bamboo/scene/mysql/mysql_open_area_flow.py b/dbm-ui/backend/flow/engine/bamboo/scene/mysql/mysql_open_area_flow.py index e34e819f2b..7a30a70a20 100644 --- a/dbm-ui/backend/flow/engine/bamboo/scene/mysql/mysql_open_area_flow.py +++ b/dbm-ui/backend/flow/engine/bamboo/scene/mysql/mysql_open_area_flow.py @@ -22,6 +22,7 @@ from backend.db_meta.exceptions import ClusterNotExistException, DBMetaException from backend.db_meta.models import Cluster from backend.db_services.mysql.sql_import.constants import BKREPO_SQLFILE_PATH +from backend.flow.consts import LONG_JOB_TIMEOUT from backend.flow.engine.bamboo.scene.common.builder import Builder, SubBuilder from backend.flow.engine.bamboo.scene.common.get_file_list import GetFileList from backend.flow.plugins.components.collections.mysql.authorize_rules import AuthorizeRulesComponent @@ -237,6 +238,7 @@ def mysql_open_area_flow(self): cluster_type=source_cluster_schema["cluster_type"], cluster=source_cluster_schema, exec_ip=source_cluster_schema["ip"], + job_timeout=LONG_JOB_TIMEOUT, get_mysql_payload_func=MysqlActPayload.get_open_area_dump_schema_payload.__name__, ) ), @@ -274,6 +276,7 @@ def mysql_open_area_flow(self): cluster_type=target_cluster["cluster_type"], cluster=target_cluster, exec_ip=target_cluster["ip"], + job_timeout=LONG_JOB_TIMEOUT, get_mysql_payload_func=MysqlActPayload.get_open_area_import_schema_payload.__name__, ) ),