Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pr select checkpoint restart #724

Merged
merged 7 commits into from
Jul 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
select save point restart
  • Loading branch information
mydq committed Jul 17, 2022
commit f6e5ca3093529737d0242bb4a1a805b83d9e1825
2 changes: 2 additions & 0 deletions dlink-web/src/pages/DevOps/JobInfo/CheckPoints/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {CheckPointsDetailInfo, SavePointInfo} from "@/pages/DevOps/data";
import {CODE, queryData} from "@/components/Common/crud";
import {selectSavePointRestartTask} from "@/pages/DevOps/service";
import {JOB_LIFE_CYCLE} from "@/components/Common/JobLifeCycle";
import {history, useLocation} from 'umi';

const {TabPane} = Tabs;

Expand Down Expand Up @@ -165,6 +166,7 @@ const CheckPoints = (props: any) => {
const res = selectSavePointRestartTask(job?.instance?.taskId, job?.instance?.step == JOB_LIFE_CYCLE.ONLINE, row.external_path);
res.then((result) => {
if (result.code == CODE.SUCCESS) {
history.goBack();
message.success("恢复作业成功");
} else {
message.error("恢复作业失败");
Expand Down