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
09cc6780
Commit
09cc6780
authored
Dec 15, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
正常调度增加系统调度
parent
67959beb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
RunNodeServiceImpl.java
...c/main/java/com/byit/service/impl/RunNodeServiceImpl.java
+3
-1
ScriptFlowParamMergeTaskRunTheLifeCycleCallback.java
...task/ScriptFlowParamMergeTaskRunTheLifeCycleCallback.java
+1
-1
FlowThreadRunHelper.java
...main/java/com/byit/thread/helper/FlowThreadRunHelper.java
+2
-0
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/impl/RunNodeServiceImpl.java
View file @
09cc6780
...
...
@@ -39,6 +39,8 @@ import java.util.*;
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
rollbackFor
=
Exception
.
class
)
@Slf4j
public
class
RunNodeServiceImpl
implements
RunNodeServer
,
ApplicationEventPublisherAware
{
private
static
final
String
TRIGGER_NAME
=
"系统调度"
;
private
final
RunRecordingService
runRecordingService
;
private
final
JobTaskService
jobTaskService
;
private
final
FlowService
flowService
;
...
...
@@ -78,7 +80,7 @@ public class RunNodeServiceImpl implements RunNodeServer, ApplicationEventPublis
build
.
setDispatchIp
(
"0.0.0.0"
);
build
.
setFlowVersionName
(
flow
.
getVersionName
());
build
.
setTriggerTime
(
flow
.
getTriggerNextTime
());
build
.
setOperator
(
TRIGGER_NAME
);
boolean
isScheduleFollow
=
"1"
.
equals
(
flow
.
getScheduleFollow
());
log
.
info
(
"-------------【开始保存节点信息,任务是否为跟随工作流,{}】---------------"
,
isScheduleFollow
);
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/strategy/task/ScriptFlowParamMergeTaskRunTheLifeCycleCallback.java
View file @
09cc6780
...
...
@@ -125,7 +125,7 @@ public class ScriptFlowParamMergeTaskRunTheLifeCycleCallback implements TaskRunT
throw
new
RuntimeException
(
String
.
format
(
"调度暂不支持此种类型的任务:%s"
,
jobType
));
}
boolean
equals
=
typeByCode
.
getType
().
equals
(
SCRIPT
);
boolean
isPlugin
=
jobTaskSchedule
.
getScheduleType
()
!=
null
&&
4
!=
jobTaskSchedule
.
getScheduleType
();
boolean
isPlugin
=
4
!=
jobTaskSchedule
.
getScheduleType
();
return
equals
&&
isPlugin
;
}
}
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/FlowThreadRunHelper.java
View file @
09cc6780
...
...
@@ -25,6 +25,8 @@ public class FlowThreadRunHelper extends BaseThreadRunHelper {
private
static
final
String
LOCK_NAME
=
"flow_lock"
;
private
final
DataSource
dataSource
;
private
final
FlowService
flowService
;
private
final
NodeService
nodeService
;
private
final
RunNodeServer
runNodeServer
;
...
...
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