Skip to content

Commit a012e2f

Browse files
yezaoshu蚂蚁代码服务
authored andcommitted
PullRequest: 984 fix(taskFlow): 如果flow是EXECUTING_ABNORMAL,节点状态校正显示为执行异常
Merge branch 'fix/nodeStatus of git@code.alipay.com:oceanbase/oceanbase-developer-center.git into dev-4.4.0 https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/984 Reviewed-by: 晓康 <xxk268858@oceanbase.com> * fix(taskFlow): 如果flow是EXECUTING_ABNORMAL,节点状态校正显示为执行异常
1 parent 2721cae commit a012e2f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/component/Task/component/CommonDetailModal/TaskFlow.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@ const TaskFlow: React.FC<IProps> = (props) => {
240240

241241
//执行
242242
let statusContent = nodeStatusMap[TaskFlowNodeType.SERVICE_TASK][status];
243+
// 如果flow是EXECUTING_ABNORMAL,节点状态校正显示为执行异常
244+
// see dima issue 2025041700108316372
245+
if (task?.status === TaskStatus.EXECUTION_ABNORMAL) {
246+
statusContent =
247+
nodeStatusMap[TaskFlowNodeType.SERVICE_TASK][TaskNodeStatus.EXECUTING_ABNORMAL];
248+
}
243249
switch (status) {
244250
case TaskNodeStatus.CREATED: {
245251
_node = {

0 commit comments

Comments
 (0)