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
e36a4328
Commit
e36a4328
authored
Apr 10, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改传参方式
parent
ad977f02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
FlowServiceImpl.java
.../src/main/java/com/byit/service/impl/FlowServiceImpl.java
+1
-1
JobUtils.java
...xecutor-plugin/src/main/java/com/byit/utils/JobUtils.java
+1
-3
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/impl/FlowServiceImpl.java
View file @
e36a4328
...
@@ -352,7 +352,7 @@ public class FlowServiceImpl implements FlowService {
...
@@ -352,7 +352,7 @@ public class FlowServiceImpl implements FlowService {
@Override
@Override
public
Boolean
killFlow
(
String
runId
)
throws
InterruptedException
{
public
Boolean
killFlow
(
String
runId
)
throws
InterruptedException
{
ValidationUtil
.
dataNotBank
(
runId
,
"运行实例不允许
3
为空!"
);
ValidationUtil
.
dataNotBank
(
runId
,
"运行实例不允许为空!"
);
//杀死运行实例
//杀死运行实例
List
<
RunRecording
>
runRecordings
=
runRecordingMapper
.
findUnFinishByRunId
(
runId
);
List
<
RunRecording
>
runRecordings
=
runRecordingMapper
.
findUnFinishByRunId
(
runId
);
ValidationUtil
.
dataNotNull
(
runRecordings
,
"该运行id未找到或已经运行完成无需杀死!"
);
ValidationUtil
.
dataNotNull
(
runRecordings
,
"该运行id未找到或已经运行完成无需杀死!"
);
...
...
byit-myth-executor/myth-executor-plugin/src/main/java/com/byit/utils/JobUtils.java
View file @
e36a4328
...
@@ -269,10 +269,8 @@ public class JobUtils {
...
@@ -269,10 +269,8 @@ public class JobUtils {
* @return
* @return
*/
*/
public
static
ResponseResult
killFlow
(
String
runId
){
public
static
ResponseResult
killFlow
(
String
runId
){
Map
<
String
,
Object
>
map
=
new
HashMap
<>(
2
);
map
.
put
(
"runId"
,
runId
);
//发送请求 添加任务
//发送请求 添加任务
String
response
=
createHttpRequest
(
REQUEST_FLOW_KILL_FLOW
,
JSON
.
toJSONString
(
map
)
);
String
response
=
createHttpRequest
(
REQUEST_FLOW_KILL_FLOW
,
"runId="
+
runId
);
log
.
info
(
"--------------------杀死工作流接口调用成功,结果为:{}------------------------"
,
response
);
log
.
info
(
"--------------------杀死工作流接口调用成功,结果为:{}------------------------"
,
response
);
return
JSON
.
parseObject
(
response
,
ResponseResult
.
class
);
return
JSON
.
parseObject
(
response
,
ResponseResult
.
class
);
}
}
...
...
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