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
dfdd469e
Commit
dfdd469e
authored
Feb 21, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调度中心集成rpc框架
parent
46e85c29
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
ScriptExecutorJobTask.java
...re/src/main/java/com/byit/task/ScriptExecutorJobTask.java
+1
-10
JobScheduleHelper.java
...core/src/main/java/com/byit/thread/JobScheduleHelper.java
+1
-2
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/task/ScriptExecutorJobTask.java
View file @
dfdd469e
...
...
@@ -2,19 +2,14 @@ package com.byit.task;
import
com.byit.conf.MythJobAutoConfigure
;
import
com.byit.enums.NodePropertyEnum
;
import
com.byit.executor.api.ScriptExecutorService
;
import
com.byit.job.dto.DispatchResponseDto
;
import
com.byit.job.dto.ScriptDto
;
import
com.byit.job.enums.JobResultEnum
;
import
com.byit.model.JobTaskSchedule
;
import
com.byit.rpc.remoting.invoker.annotation.RpcReference
;
import
com.byit.service.RunScriptService
;
import
com.byit.util.SpringUtil
;
import
io.netty.util.Timeout
;
import
io.netty.util.TimerTask
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Controller
;
/**
* @author Administrator
...
...
@@ -24,11 +19,7 @@ public class ScriptExecutorJobTask implements TimerTask {
private
JobTaskSchedule
mythJobTaskSchedule
;
public
JobTaskSchedule
getMythJobTaskSchedule
()
{
return
mythJobTaskSchedule
;
}
public
void
setMythJobTaskSchedule
(
JobTaskSchedule
mythJobTaskSchedule
)
{
public
ScriptExecutorJobTask
(
JobTaskSchedule
mythJobTaskSchedule
)
{
this
.
mythJobTaskSchedule
=
mythJobTaskSchedule
;
}
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/JobScheduleHelper.java
View file @
dfdd469e
...
...
@@ -337,8 +337,7 @@ public class JobScheduleHelper{
JavaBeanJobTask
javaBeanJobTask
=
new
JavaBeanJobTask
(
mythJobTaskSchedule
);
WorkRoulette
.
addJob
(
javaBeanJobTask
,
triggerTime
);
}
else
if
(
"SCRIPT"
.
equals
(
mythJobTaskSchedule
.
getJobType
())){
ScriptExecutorJobTask
scriptExecutorJobTask
=
new
ScriptExecutorJobTask
();
scriptExecutorJobTask
.
setMythJobTaskSchedule
(
mythJobTaskSchedule
);
ScriptExecutorJobTask
scriptExecutorJobTask
=
new
ScriptExecutorJobTask
(
mythJobTaskSchedule
);
WorkRoulette
.
addJob
(
scriptExecutorJobTask
,
triggerTime
);
}
jobTaskScheduleService
.
delete
(
mythJobTaskSchedule
.
getId
());
...
...
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