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
52b5f3fe
Commit
52b5f3fe
authored
Apr 09, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
ca2722d2
aaa05dc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ScheduleStatusEnum.java
...core/src/main/java/com/byit/enums/ScheduleStatusEnum.java
+2
-2
StatusSnapshootThreadRunHelper.java
...om/byit/thread/helper/StatusSnapshootThreadRunHelper.java
+2
-1
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/enums/ScheduleStatusEnum.java
View file @
52b5f3fe
...
@@ -9,8 +9,8 @@ public enum ScheduleStatusEnum {
...
@@ -9,8 +9,8 @@ public enum ScheduleStatusEnum {
UN_START
(
1
,
"未运行"
),
UN_START
(
1
,
"未运行"
),
STARTING
(
2
,
"运行中"
),
STARTING
(
2
,
"运行中"
),
FINISH
(
3
,
"暂停"
),
FINISH
(
4
,
"暂停"
),
STOP
(
4
,
"完成"
),
STOP
(
3
,
"完成"
),
;
;
private
Integer
code
;
private
Integer
code
;
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/StatusSnapshootThreadRunHelper.java
View file @
52b5f3fe
package
com
.
byit
.
thread
.
helper
;
package
com
.
byit
.
thread
.
helper
;
import
com.byit.dto.plugin.StatisticData
;
import
com.byit.dto.plugin.StatisticData
;
import
com.byit.enums.ScheduleStatusEnum
;
import
com.byit.mapper.*
;
import
com.byit.mapper.*
;
import
com.byit.model.*
;
import
com.byit.model.*
;
import
com.byit.thread.BaseThreadRunHelper
;
import
com.byit.thread.BaseThreadRunHelper
;
...
@@ -81,7 +82,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
...
@@ -81,7 +82,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
//获取上一个时间
//获取上一个时间
Long
preHourTime
=
hourDateTime
.
minusHours
(
1
).
toInstant
(
ZoneOffset
.
of
(
"+8"
)).
toEpochMilli
();
Long
preHourTime
=
hourDateTime
.
minusHours
(
1
).
toInstant
(
ZoneOffset
.
of
(
"+8"
)).
toEpochMilli
();
//从凌晨到现在是否有运行实例
//从凌晨到现在是否有运行实例
if
(
preHourTime
.
longValue
()
>
maxRunRecording
.
getTriggerTime
().
longValue
()){
if
(
preHourTime
.
longValue
()
>
maxRunRecording
.
getTriggerTime
().
longValue
()
&&
ScheduleStatusEnum
.
FINISH
.
getCode
().
equals
(
maxRunRecording
.
getFlowStatus
())
){
flowStatusSnapshoot
.
setFlowStatus
(
1
);
flowStatusSnapshoot
.
setFlowStatus
(
1
);
flowStatusSnapshoot
.
setUnstartNode
(
flow
.
getFlowNodeCount
());
flowStatusSnapshoot
.
setUnstartNode
(
flow
.
getFlowNodeCount
());
flowStatusSnapshootList
.
add
(
flowStatusSnapshoot
);
flowStatusSnapshootList
.
add
(
flowStatusSnapshoot
);
...
...
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