From e609f98949d72b1d80db7ff72f69805a33d669b9 Mon Sep 17 00:00:00 2001 From: Mohamed Khelif Date: Tue, 5 Sep 2023 22:41:04 +0100 Subject: [PATCH] EVG-20086 Add task blocked event copy (#2021) --- src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx | 3 +++ src/types/task.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx b/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx index 840e1e9597..03ef99987b 100644 --- a/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx +++ b/src/pages/task/taskTabs/logs/logTypes/TaskEventLogLine.tsx @@ -17,6 +17,9 @@ export const TaskEventLogLine: React.FC = ({ const containerOrHostCopy = podId ? "container" : "host"; let message: JSX.Element; switch (eventType) { + case TaskEventType.TaskBlocked: + message = <>Task is blocked.; + break; case TaskEventType.TaskFinished: message = ( <> diff --git a/src/types/task.ts b/src/types/task.ts index da7d39d739..2cb2ecca36 100644 --- a/src/types/task.ts +++ b/src/types/task.ts @@ -106,6 +106,7 @@ export enum TaskEventType { TaskFinished = "TASK_FINISHED", TaskStarted = "TASK_STARTED", TaskDispatched = "TASK_DISPATCHED", + TaskBlocked = "TASK_BLOCKED", TaskUndispatched = "TASK_UNDISPATCHED", TaskCreated = "TASK_CREATED", TaskRestarted = "TASK_RESTARTED",