mirror of
https://github.com/WeiYe-Jing/datax-web.git
synced 2026-06-30 21:17:37 +08:00
日志输出优化,获取datax执行进程Id
This commit is contained in:
parent
7c1389cb6d
commit
a24be3da86
@ -1,6 +1,7 @@
|
||||
package com.wugui.dataxweb.service.impl;
|
||||
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
@ -121,6 +122,8 @@ public class IDataxJobServiceImpl implements IDataxJobService {
|
||||
|
||||
@Override
|
||||
public Boolean killJob(String pid) {
|
||||
// 删除临时文件
|
||||
//FileUtil.del(new File(tmpFilePath));
|
||||
return ProcessUtil.killProcessByPid(pid);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user