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
e9acfd09
Commit
e9acfd09
authored
May 29, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
避免暂停未运行节点 导致超时线程报错
parent
ad2eb0c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
TimeoutExampleThreadRunHelper.java
...com/byit/thread/helper/TimeoutExampleThreadRunHelper.java
+2
-1
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/TimeoutExampleThreadRunHelper.java
View file @
e9acfd09
...
...
@@ -10,6 +10,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.stereotype.Component
;
import
javax.sql.DataSource
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
...
...
@@ -38,7 +39,7 @@ public class TimeoutExampleThreadRunHelper extends BaseThreadRunHelper {
List
<
RunRecording
>
allRunIng
=
runRecordingService
.
findAllRunIng
(
new
FlowConditionDto
());
List
<
RunRecording
>
timeoutRunRecordings
=
allRunIng
.
stream
().
filter
(
runRecording
->
{
long
startTime
=
runRecording
.
get
StartTime
().
get
Time
();
long
startTime
=
runRecording
.
get
Trigger
Time
();
long
thisTime
=
System
.
currentTimeMillis
();
Long
flowTimeout
=
runRecording
.
getFlowTimeout
();
long
time
=
thisTime
-
startTime
;
...
...
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