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
8c8054a0
Commit
8c8054a0
authored
Mar 17, 2020
by
guominglei@byitgroup.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
ae1f837a
d94c89da
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
11 deletions
+19
-11
application-dev.yml
byit-myth-admin/src/main/resources/application-dev.yml
+1
-1
application-pro.yml
byit-myth-admin/src/main/resources/application-pro.yml
+1
-1
RunRecordingServiceImpl.java
...n/java/com/byit/service/impl/RunRecordingServiceImpl.java
+1
-1
MakeUpFlowThreadRunHelper.java
...ava/com/byit/thread/helper/MakeUpFlowThreadRunHelper.java
+10
-2
application-dev.yml
...th-executor-server/src/main/resources/application-dev.yml
+1
-1
application-pro.yml
...th-executor-server/src/main/resources/application-pro.yml
+1
-1
application-dev.yml
byit-myth-gateway/src/main/resources/application-dev.yml
+2
-2
application-pro.yml
byit-myth-gateway/src/main/resources/application-pro.yml
+2
-2
No files found.
byit-myth-admin/src/main/resources/application-dev.yml
View file @
8c8054a0
...
@@ -20,7 +20,7 @@ mybatis:
...
@@ -20,7 +20,7 @@ mybatis:
myth-rpc
:
myth-rpc
:
registry
:
registry
:
address
:
http://localhost:8080/myth-register
address
:
http://localhost:8080/myth-register
env
:
huangfu
env
:
dev
biz
:
byit-myth-job
biz
:
byit-myth-job
logging
:
logging
:
path
:
/data/mythjob
path
:
/data/mythjob
...
...
byit-myth-admin/src/main/resources/application-pro.yml
View file @
8c8054a0
...
@@ -20,7 +20,7 @@ mybatis:
...
@@ -20,7 +20,7 @@ mybatis:
myth-rpc
:
myth-rpc
:
registry
:
registry
:
address
:
http://${Eureka_IP}/myth-register
address
:
http://${Eureka_IP}/myth-register
env
:
huangfu
env
:
pro
biz
:
byit-myth-job
biz
:
byit-myth-job
logging
:
logging
:
path
:
/data/mythjob
path
:
/data/mythjob
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/service/impl/RunRecordingServiceImpl.java
View file @
8c8054a0
...
@@ -42,7 +42,7 @@ public class RunRecordingServiceImpl implements RunRecordingService {
...
@@ -42,7 +42,7 @@ public class RunRecordingServiceImpl implements RunRecordingService {
/**
/**
* 是否存在运行的工作流实例
* 是否存在运行的工作流实例
* @param flowId 工作流ID
* @param flowId 工作流ID
* @return
是否在正在运行中
* @return
true有正在运行中的数据 反之没有
*/
*/
@Override
@Override
public
boolean
findRunRecordingIsRunning
(
Integer
flowId
)
{
public
boolean
findRunRecordingIsRunning
(
Integer
flowId
)
{
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/MakeUpFlowThreadRunHelper.java
View file @
8c8054a0
package
com
.
byit
.
thread
.
helper
;
package
com
.
byit
.
thread
.
helper
;
import
com.byit.model.RunRecording
;
import
com.byit.model.WaitingRecord
;
import
com.byit.model.WaitingRecord
;
import
com.byit.service.RunRecordingService
;
import
com.byit.service.WaitingRecordService
;
import
com.byit.service.WaitingRecordService
;
import
com.byit.service.mapservice.RunRecordingAndJobTaskService
;
import
com.byit.service.mapservice.RunRecordingAndJobTaskService
;
import
com.byit.thread.BaseThreadRunHelper
;
import
com.byit.thread.BaseThreadRunHelper
;
...
@@ -28,14 +30,16 @@ public class MakeUpFlowThreadRunHelper extends BaseThreadRunHelper {
...
@@ -28,14 +30,16 @@ public class MakeUpFlowThreadRunHelper extends BaseThreadRunHelper {
private
final
WaitingRecordService
waitingRecordService
;
private
final
WaitingRecordService
waitingRecordService
;
private
final
RunRecordingAndJobTaskService
runRecordingAndJobTaskService
;
private
final
RunRecordingAndJobTaskService
runRecordingAndJobTaskService
;
private
final
RunRecordingService
runRecordingService
;
public
MakeUpFlowThreadRunHelper
(
DataSource
dataSource
,
WaitingRecordService
waitingRecordService
,
RunRecordingAndJobTaskService
runRecordingAndJobTaskService
)
{
public
MakeUpFlowThreadRunHelper
(
DataSource
dataSource
,
WaitingRecordService
waitingRecordService
,
RunRecordingAndJobTaskService
runRecordingAndJobTaskService
,
RunRecordingService
runRecordingService
)
{
this
.
dataSource
=
dataSource
;
this
.
dataSource
=
dataSource
;
this
.
waitingRecordService
=
waitingRecordService
;
this
.
waitingRecordService
=
waitingRecordService
;
this
.
runRecordingAndJobTaskService
=
runRecordingAndJobTaskService
;
this
.
runRecordingAndJobTaskService
=
runRecordingAndJobTaskService
;
this
.
runRecordingService
=
runRecordingService
;
}
}
@Override
@Override
...
@@ -51,8 +55,12 @@ public class MakeUpFlowThreadRunHelper extends BaseThreadRunHelper {
...
@@ -51,8 +55,12 @@ public class MakeUpFlowThreadRunHelper extends BaseThreadRunHelper {
Map
<
Integer
,
WaitingRecord
>
nextRunFlow
=
allByTriggerTime
.
stream
()
Map
<
Integer
,
WaitingRecord
>
nextRunFlow
=
allByTriggerTime
.
stream
()
.
collect
(
Collectors
.
toMap
(
WaitingRecord:
:
getFlowId
,
Function
.
identity
(),
BinaryOperator
.
minBy
(
Comparator
.
comparingInt
(
WaitingRecord:
:
getWaitOrder
))));
.
collect
(
Collectors
.
toMap
(
WaitingRecord:
:
getFlowId
,
Function
.
identity
(),
BinaryOperator
.
minBy
(
Comparator
.
comparingInt
(
WaitingRecord:
:
getWaitOrder
))));
nextRunFlow
.
forEach
((
key
,
value
)
->{
nextRunFlow
.
forEach
((
key
,
value
)
->{
runRecordingAndJobTaskService
.
updateRunRecordingAndTask
(
value
);
boolean
runRecordingIsRunning
=
runRecordingService
.
findRunRecordingIsRunning
(
value
.
getFlowId
());
if
(!
runRecordingIsRunning
){
runRecordingAndJobTaskService
.
updateRunRecordingAndTask
(
value
);
}
});
});
return
UNIVERSAL_WAIT_TIME
;
return
UNIVERSAL_WAIT_TIME
;
...
...
byit-myth-executor/myth-executor-server/src/main/resources/application-dev.yml
View file @
8c8054a0
...
@@ -3,7 +3,7 @@ myth-rpc:
...
@@ -3,7 +3,7 @@ myth-rpc:
registry
:
registry
:
address
:
http://localhost:8080/myth-register
address
:
http://localhost:8080/myth-register
biz
:
byit-myth-job
biz
:
byit-myth-job
env
:
test
env
:
dev
remoting
:
remoting
:
port
:
7776
port
:
7776
logging
:
logging
:
...
...
byit-myth-executor/myth-executor-server/src/main/resources/application-pro.yml
View file @
8c8054a0
...
@@ -3,7 +3,7 @@ myth-rpc:
...
@@ -3,7 +3,7 @@ myth-rpc:
registry
:
registry
:
address
:
http://localhost:8080/myth-register
address
:
http://localhost:8080/myth-register
biz
:
byit-myth-job
biz
:
byit-myth-job
env
:
test
env
:
pro
remoting
:
remoting
:
port
:
7776
port
:
7776
logging
:
logging
:
...
...
byit-myth-gateway/src/main/resources/application-dev.yml
View file @
8c8054a0
#路
由规则参考byit-myth-rpc中的LoadBalance枚举类中的类型 默认是轮
询
#·
�ɹ���ο�byit-myth-rpc�е�LoadBalanceö�����е����� Ĭ������ѯ
gateway
:
gateway
:
load
:
load
:
balance
:
ROUND
balance
:
ROUND
...
@@ -14,7 +14,7 @@ myth-rpc:
...
@@ -14,7 +14,7 @@ myth-rpc:
registry
:
registry
:
address
:
http://localhost:8080/myth-register
address
:
http://localhost:8080/myth-register
biz
:
byit-myth-job
biz
:
byit-myth-job
env
:
liyuan
env
:
dev
remoting
:
remoting
:
port
:
8082
port
:
8082
...
...
byit-myth-gateway/src/main/resources/application-pro.yml
View file @
8c8054a0
#路
由规则参考byit-myth-rpc中的LoadBalance枚举类中的类型 默认是轮
询
#·
�ɹ���ο�byit-myth-rpc�е�LoadBalanceö�����е����� Ĭ������ѯ
gateway
:
gateway
:
load
:
load
:
balance
:
ROUND
balance
:
ROUND
...
@@ -14,7 +14,7 @@ myth-rpc:
...
@@ -14,7 +14,7 @@ myth-rpc:
registry
:
registry
:
address
:
http://localhost:8080/myth-register
address
:
http://localhost:8080/myth-register
biz
:
byit-myth-job
biz
:
byit-myth-job
env
:
liyuan
env
:
pro
remoting
:
remoting
:
port
:
8082
port
:
8082
...
...
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