forked from github/dataease
Merge pull request #8176 from dataease/pr@dev-v2@sync-add-terminationTask
feat(同步管理-任务管理): 支持终止执行中的任务
This commit is contained in:
commit
476ed2a75e
@ -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: {} })
|
||||
}
|
||||
|
@ -36,4 +36,7 @@ public interface TaskLogApi {
|
||||
@PostMapping("/clear")
|
||||
void clearJobLog(@RequestBody TaskLogVO taskLogVO);
|
||||
|
||||
@PostMapping("terminationTask/{logId}")
|
||||
void terminationTask(@PathVariable("logId") String logId);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user