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
9275b0f0
Commit
9275b0f0
authored
Dec 04, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改任务超时时间
parent
ef5a5d42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+3
-2
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
9275b0f0
...
@@ -41,6 +41,7 @@ import javax.annotation.Resource;
...
@@ -41,6 +41,7 @@ import javax.annotation.Resource;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -178,8 +179,8 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -178,8 +179,8 @@ public class ApiFlowServiceImpl implements ApiFlowService {
flow
.
setScheduleFollow
(
StringUtils
.
isEmpty
(
pluginFlow
.
getConfig
().
getScheduleFollow
())
?
"1"
:
pluginFlow
.
getConfig
().
getScheduleFollow
());
flow
.
setScheduleFollow
(
StringUtils
.
isEmpty
(
pluginFlow
.
getConfig
().
getScheduleFollow
())
?
"1"
:
pluginFlow
.
getConfig
().
getScheduleFollow
());
flow
.
setFlowCron
(
pluginFlow
.
getConfig
().
getFlowCron
());
flow
.
setFlowCron
(
pluginFlow
.
getConfig
().
getFlowCron
());
flow
.
setTriggerNextTime
(
StringUtils
.
isEmpty
(
pluginFlow
.
getConfig
().
getFlowCron
())
?
null
:
new
CronExpression
(
pluginFlow
.
getConfig
().
getFlowCron
()).
getNextValidTimeAfter
(
new
Date
()).
getTime
());
flow
.
setTriggerNextTime
(
StringUtils
.
isEmpty
(
pluginFlow
.
getConfig
().
getFlowCron
())
?
null
:
new
CronExpression
(
pluginFlow
.
getConfig
().
getFlowCron
()).
getNextValidTimeAfter
(
new
Date
()).
getTime
());
//设置超时时间,未设置默认
30分钟
//设置超时时间,未设置默认
5天
flow
.
setFlowTimeout
(
null
==
pluginFlow
.
getConfig
().
getFlowTimeout
()
?
1000
*
60
*
120
:
pluginFlow
.
getConfig
().
getFlowTimeout
());
flow
.
setFlowTimeout
(
null
==
pluginFlow
.
getConfig
().
getFlowTimeout
()
?
TimeUnit
.
DAYS
.
toMillis
(
5
)
:
pluginFlow
.
getConfig
().
getFlowTimeout
());
Flow
oldFlow
=
flowMapper
.
getByWorkSpaceAndName
(
workspaceId
,
pluginFlow
.
getName
());
Flow
oldFlow
=
flowMapper
.
getByWorkSpaceAndName
(
workspaceId
,
pluginFlow
.
getName
());
//判断是否是重发
//判断是否是重发
if
((
pluginFlow
.
isRePublish
()
&&
!
isInnner
)
||
(
isInnner
&&
null
!=
oldFlow
))
{
if
((
pluginFlow
.
isRePublish
()
&&
!
isInnner
)
||
(
isInnner
&&
null
!=
oldFlow
))
{
...
...
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