mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
feat(同步管理-任务管理): 支持终止执行中的任务
This commit is contained in:
parent
0b3f049c87
commit
7f367f79a7
@ -18,3 +18,7 @@ export const getTaskLogDetailApi = (logId: string, fromLineNum: number) => {
|
|||||||
export const clear = (clearData: {}) => {
|
export const clear = (clearData: {}) => {
|
||||||
return request.post({ url: `/sync/task/log/clear`, data: 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")
|
@PostMapping("/clear")
|
||||||
void clearJobLog(@RequestBody TaskLogVO taskLogVO);
|
void clearJobLog(@RequestBody TaskLogVO taskLogVO);
|
||||||
|
|
||||||
|
@PostMapping("terminationTask/{logId}")
|
||||||
|
void terminationTask(@PathVariable("logId") String logId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user