diff --git a/dbm-ui/backend/flow/utils/mysql/common/random_job_with_ticket_map.py b/dbm-ui/backend/flow/utils/mysql/common/random_job_with_ticket_map.py index edeb6615b..357381857 100644 --- a/dbm-ui/backend/flow/utils/mysql/common/random_job_with_ticket_map.py +++ b/dbm-ui/backend/flow/utils/mysql/common/random_job_with_ticket_map.py @@ -40,7 +40,9 @@ class RuleDict: # 定义的单据类型对哪些实例角色来添加随机账号 random_job_with_ticket_map = { # mysql 变更SQL执行添加账号规则 - TicketType.MYSQL_IMPORT_SQLFILE: RuleDict(exec_storage_instance_role_list=[InstanceRole.BACKEND_MASTER]), + TicketType.MYSQL_IMPORT_SQLFILE: RuleDict( + exec_storage_instance_role_list=[InstanceRole.BACKEND_MASTER, InstanceRole.ORPHAN] + ), # tendb_cluster集群SQL执行添加账号规则 TicketType.TENDBCLUSTER_IMPORT_SQLFILE: RuleDict(is_tdbctl_primary_add=True), }