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
c33e97c8
Commit
c33e97c8
authored
Jun 01, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加暂停服务
parent
e640ec86
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
JobUtils.java
...xecutor-plugin/src/main/java/com/byit/utils/JobUtils.java
+13
-0
No files found.
byit-myth-executor/myth-executor-plugin/src/main/java/com/byit/utils/JobUtils.java
View file @
c33e97c8
...
@@ -157,6 +157,7 @@ public class JobUtils {
...
@@ -157,6 +157,7 @@ public class JobUtils {
* 获取当前的运行状态
* 获取当前的运行状态
*/
*/
private
static
final
String
REQUEST_LOADSTATUS_JAVATASK
=
"/api/node/loadCurrentStatusByJobName"
;
private
static
final
String
REQUEST_LOADSTATUS_JAVATASK
=
"/api/node/loadCurrentStatusByJobName"
;
private
static
final
String
STOP_SCHEDULE_BY_RUNID
=
"/api/flow/stopScheduleByRunId"
;
/**
/**
* 当前项目运行环境 jar file
* 当前项目运行环境 jar file
*/
*/
...
@@ -190,6 +191,18 @@ public class JobUtils {
...
@@ -190,6 +191,18 @@ public class JobUtils {
}
}
/**
/**
* 暂停指定的工作流
* @param runId
* @return
*/
public
static
ResponseResult
stopScheduleByRunId
(
String
runId
)
{
log
.
debug
(
"-------------暂停当前运行的节点----------------------"
);
String
response
=
createHttpRequest
(
STOP_SCHEDULE_BY_RUNID
,
"runId="
+
runId
);
log
.
debug
(
"--------------------获取当前的运行状态,结果为:{}------------------------"
,
response
);
return
JSON
.
parseObject
(
response
,
ResponseResult
.
class
);
}
/**
* 添加一个任务节点
* 添加一个任务节点
* @param pluginBeanJobInfo 任务节点的详尽配置
* @param pluginBeanJobInfo 任务节点的详尽配置
* @return 添加结果
* @return 添加结果
...
...
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