Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
b95e6a3d
Commit
b95e6a3d
authored
Apr 10, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
杀死失败时报错提示
parent
0ead6d87
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
FlowServiceImpl.java
.../src/main/java/com/byit/service/impl/FlowServiceImpl.java
+3
-5
MythJobProcess.java
...server/src/main/java/com/byit/process/MythJobProcess.java
+1
-0
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/impl/FlowServiceImpl.java
View file @
b95e6a3d
...
@@ -331,7 +331,7 @@ public class FlowServiceImpl implements FlowService {
...
@@ -331,7 +331,7 @@ public class FlowServiceImpl implements FlowService {
ValidationUtil
.
isTrueValidation
(!
"0"
.
equals
(
innerJobTaskRunLog
.
getRunCode
()),
"该任务已经运行结束!"
);
ValidationUtil
.
isTrueValidation
(!
"0"
.
equals
(
innerJobTaskRunLog
.
getRunCode
()),
"该任务已经运行结束!"
);
ValidationUtil
.
dataNotBank
(
innerJobTaskRunLog
.
getJobGroupIp
(),
"尚未分配执行机请稍后再试"
);
ValidationUtil
.
dataNotBank
(
innerJobTaskRunLog
.
getJobGroupIp
(),
"尚未分配执行机请稍后再试"
);
}
}
if
(!
killJob
(
innerJobTaskRunLog
.
getLogId
(),
innerJobTaskRunLog
.
getJobGroupIp
())){
if
(!
killJob
(
innerJobTaskRunLog
.
getLogId
(),
innerJobTaskRunLog
.
getJobGroupIp
())){
result
=
false
;
result
=
false
;
}
}
}
}
...
@@ -386,10 +386,9 @@ public class FlowServiceImpl implements FlowService {
...
@@ -386,10 +386,9 @@ public class FlowServiceImpl implements FlowService {
String
killResult
=
HttpUtil
.
post
(
killUrl
,
requestMap
);
String
killResult
=
HttpUtil
.
post
(
killUrl
,
requestMap
);
log
.
info
(
"请求结果{}"
,
killResult
);
log
.
info
(
"请求结果{}"
,
killResult
);
ResponseResult
responseResult
=
JSON
.
parseObject
(
killResult
,
ResponseResult
.
class
);
ResponseResult
responseResult
=
JSON
.
parseObject
(
killResult
,
ResponseResult
.
class
);
if
(
"SUCCESS"
.
equals
(
responseResult
.
getResult
())){
ValidationUtil
.
isTrueValidation
(!
"SUCCESS"
.
equals
(
responseResult
.
getResult
()),
"杀死job失败,错误信息为:"
+
responseResult
.
getResult
());
return
true
;
return
true
;
}
}
return
false
;
}
}
}
\ No newline at end of file
byit-myth-executor/myth-executor-server/src/main/java/com/byit/process/MythJobProcess.java
View file @
b95e6a3d
...
@@ -234,6 +234,7 @@ public class MythJobProcess implements Callable<String>{
...
@@ -234,6 +234,7 @@ public class MythJobProcess implements Callable<String>{
* 强制杀死这个过程
* 强制杀死这个过程
*/
*/
public
void
hardKill
()
{
public
void
hardKill
()
{
log
.
info
(
"强制杀死这个过程"
);
//判断是否已经开始运行
//判断是否已经开始运行
checkStarted
();
checkStarted
();
//判断是否正在执行
//判断是否正在执行
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment