This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 5bc955ded3 [INLONG-9895][Dashboard] Support restart when the task
fails (#9898)
5bc955ded3 is described below
commit 5bc955ded391ababb407c73bcb18fef8e0f63024
Author: haifxu <[email protected]>
AuthorDate: Fri Mar 29 14:26:44 2024 +0800
[INLONG-9895][Dashboard] Support restart when the task fails (#9898)
---
inlong-dashboard/src/ui/pages/GroupDashboard/config.tsx | 2 +-
inlong-dashboard/src/ui/pages/SynchronizeDashboard/config.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/inlong-dashboard/src/ui/pages/GroupDashboard/config.tsx
b/inlong-dashboard/src/ui/pages/GroupDashboard/config.tsx
index b160f62407..200e834404 100644
--- a/inlong-dashboard/src/ui/pages/GroupDashboard/config.tsx
+++ b/inlong-dashboard/src/ui/pages/GroupDashboard/config.tsx
@@ -86,7 +86,7 @@ export const useColumns = ({ onDelete, openModal, onRestart,
onStop }) => {
<Button type="link" onClick={() => onDelete(record)}>
{i18n.t('basic.Delete')}
</Button>
- {record?.status && record?.status === 140 && (
+ {record?.status && (record?.status === 140 || record?.status ===
120) && (
<Button type="link" onClick={() => onRestart(record)}>
{i18n.t('pages.GroupDashboard.config.Restart')}
</Button>
diff --git a/inlong-dashboard/src/ui/pages/SynchronizeDashboard/config.tsx
b/inlong-dashboard/src/ui/pages/SynchronizeDashboard/config.tsx
index e90106747a..0b3d7b07b2 100644
--- a/inlong-dashboard/src/ui/pages/SynchronizeDashboard/config.tsx
+++ b/inlong-dashboard/src/ui/pages/SynchronizeDashboard/config.tsx
@@ -86,7 +86,7 @@ export const useColumns = ({ onDelete, openModal, onRestart,
onStop }) => {
<Button type="link" onClick={() => onDelete(record)}>
{i18n.t('basic.Delete')}
</Button>
- {record?.status && record?.status === 140 && (
+ {record?.status && (record?.status === 140 || record?.status ===
120) && (
<Button type="link" onClick={() => onRestart(record)}>
{i18n.t('pages.SynchronizeDashboard.config.Restart')}
</Button>