Skip to content

Commit 6385bda

Browse files
authored
[Optimization-4303] Support recover from the latest completed CheckPoint (#4340)
1 parent a1576b2 commit 6385bda

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

  • dinky-web/src/pages/DevOps/JobDetail/CheckPointsTab/components

dinky-web/src/pages/DevOps/JobDetail/CheckPointsTab/components/CkDesc.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ import {
2727
RocketOutlined,
2828
SyncOutlined
2929
} from '@ant-design/icons';
30-
import { Descriptions, Space, Tag } from 'antd';
30+
import { Button, Descriptions, Space, Tag } from 'antd';
31+
import {recoveryCheckPoint} from "@/pages/DevOps/JobDetail/CheckPointsTab/components/functions";
32+
import {l} from "@/utils/intl";
3133

3234
const CkDesc = (props: JobProps) => {
3335
const { jobDetail } = props;
@@ -83,6 +85,15 @@ const CkDesc = (props: JobProps) => {
8385
{latest?.completed?.external_path ?? 'None'}
8486
</EllipsisMiddle>
8587
</Tag>
88+
{latest?.completed?.external_path ? (
89+
<Button
90+
onClick={() =>
91+
recoveryCheckPoint(jobDetail?.instance?.taskId, latest?.completed?.external_path)
92+
}
93+
>
94+
{l('devops.jobinfo.ck.recovery.recoveryTo')}
95+
</Button>
96+
) : undefined}
8697
</Descriptions.Item>
8798

8899
<Descriptions.Item label='Persist Checkpoints Externally Enabled'>

0 commit comments

Comments
 (0)