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
3321fabc
Commit
3321fabc
authored
Dec 16, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
冲泡任务
parent
8b2c98c5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
JavaParamWrappedCallback.java
...com/byit/strategy/task/java/JavaParamWrappedCallback.java
+2
-1
ScriptParamWrappedCallback.java
...byit/strategy/task/script/ScriptParamWrappedCallback.java
+3
-2
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/strategy/task/java/JavaParamWrappedCallback.java
View file @
3321fabc
...
@@ -5,6 +5,7 @@ import com.byit.annotations.MythRankOrder;
...
@@ -5,6 +5,7 @@ import com.byit.annotations.MythRankOrder;
import
com.byit.dto.executor.RunParamWrapped
;
import
com.byit.dto.executor.RunParamWrapped
;
import
com.byit.dto.plugin.FlowExtendedConfiguration
;
import
com.byit.dto.plugin.FlowExtendedConfiguration
;
import
com.byit.enums.NodeTypeEnum
;
import
com.byit.enums.NodeTypeEnum
;
import
com.byit.enums.ScheduleTypeEnum
;
import
com.byit.model.JobTaskSchedule
;
import
com.byit.model.JobTaskSchedule
;
import
com.byit.model.RunRecording
;
import
com.byit.model.RunRecording
;
import
com.byit.service.RunRecordingService
;
import
com.byit.service.RunRecordingService
;
...
@@ -34,7 +35,7 @@ public class JavaParamWrappedCallback implements TaskRunTheLifeCycleCallback {
...
@@ -34,7 +35,7 @@ public class JavaParamWrappedCallback implements TaskRunTheLifeCycleCallback {
*/
*/
@Override
@Override
public
boolean
matchType
(
JobTaskSchedule
jobTaskSchedule
)
{
public
boolean
matchType
(
JobTaskSchedule
jobTaskSchedule
)
{
return
NodeTypeEnum
.
JAVA
.
getType
().
equals
(
jobTaskSchedule
.
getJobType
());
return
NodeTypeEnum
.
JAVA
.
getType
().
equals
(
jobTaskSchedule
.
getJobType
())
&&
!
ScheduleTypeEnum
.
REPEAT
.
getCode
().
equals
(
jobTaskSchedule
.
getScheduleType
())
;
}
}
/**
/**
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/strategy/task/script/ScriptParamWrappedCallback.java
View file @
3321fabc
...
@@ -6,6 +6,7 @@ import com.byit.annotations.MythRankOrder;
...
@@ -6,6 +6,7 @@ import com.byit.annotations.MythRankOrder;
import
com.byit.dto.executor.RunParamWrapped
;
import
com.byit.dto.executor.RunParamWrapped
;
import
com.byit.dto.executor.ScriptParamAndPlaceholderDto
;
import
com.byit.dto.executor.ScriptParamAndPlaceholderDto
;
import
com.byit.enums.NodeTypeEnum
;
import
com.byit.enums.NodeTypeEnum
;
import
com.byit.enums.ScheduleTypeEnum
;
import
com.byit.model.JobTaskSchedule
;
import
com.byit.model.JobTaskSchedule
;
import
com.byit.strategy.TaskRunTheLifeCycleCallback
;
import
com.byit.strategy.TaskRunTheLifeCycleCallback
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -72,7 +73,7 @@ public class ScriptParamWrappedCallback implements TaskRunTheLifeCycleCallback {
...
@@ -72,7 +73,7 @@ public class ScriptParamWrappedCallback implements TaskRunTheLifeCycleCallback {
if
(
typeByCode
==
null
)
{
if
(
typeByCode
==
null
)
{
throw
new
RuntimeException
(
String
.
format
(
"调度暂不支持此种类型的任务:%s"
,
jobType
));
throw
new
RuntimeException
(
String
.
format
(
"调度暂不支持此种类型的任务:%s"
,
jobType
));
}
}
//是否是脚本类型的
//是否是脚本类型的
不能是重跑的 重跑的节点是封装后的
return
typeByCode
.
getType
().
equals
(
SCRIPT
);
return
typeByCode
.
getType
().
equals
(
SCRIPT
)
&&
!
ScheduleTypeEnum
.
REPEAT
.
getCode
().
equals
(
jobTaskSchedule
.
getScheduleType
())
;
}
}
}
}
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