Merge pull request #8176 from dataease/pr@dev-v2@sync-add-terminationTask

feat(同步管理-任务管理): 支持终止执行中的任务
This commit is contained in:
jianneng-fit2cloud 2024-02-27 12:30:52 +08:00 committed by GitHub
commit 476ed2a75e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -18,3 +18,7 @@ export const getTaskLogDetailApi = (logId: string, fromLineNum: number) => {
export const clear = (clearData: {}) => {
return request.post({ url: `/sync/task/log/clear`, data: clearData })
}
export const terminationTaskApi = (logId: string) => {
return request.post({ url: `/sync/task/log/terminationTask/${logId}`, data: {} })
}

View File

@ -36,4 +36,7 @@ public interface TaskLogApi {
@PostMapping("/clear")
void clearJobLog(@RequestBody TaskLogVO taskLogVO);
@PostMapping("terminationTask/{logId}")
void terminationTask(@PathVariable("logId") String logId);
}