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
a3d0064a
Commit
a3d0064a
authored
May 12, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日志push开始节点
parent
3b9c2194
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
MythJobProcess.java
...server/src/main/java/com/byit/process/MythJobProcess.java
+7
-1
No files found.
byit-myth-executor/myth-executor-server/src/main/java/com/byit/process/MythJobProcess.java
View file @
a3d0064a
...
@@ -88,7 +88,13 @@ public class MythJobProcess implements Callable<String>{
...
@@ -88,7 +88,13 @@ public class MythJobProcess implements Callable<String>{
@SneakyThrows
@SneakyThrows
@Override
@Override
public
String
call
()
{
public
String
call
()
{
RunLog
startRunLog
=
RunLog
.
builder
().
isEnd
(
false
).
runLog
(
"start"
).
build
();
//stringRedisTemplate.convertAndSend(runKey, JSON.toJSONString(runLog, WriteClassName))
//TODO 向队尾追加一个日志
Long
startLong
=
stringRedisTemplate
.
opsForList
().
rightPush
(
runKey
,
JSON
.
toJSONString
(
startRunLog
,
WriteClassName
));
if
(
startLong
<=
0
){
log
.
error
(
"------日志信息加入redis异常,{}---------"
,
startLong
);
}
//判断是否执行过
//判断是否执行过
if
(
this
.
isStarted
()
||
this
.
isComplete
())
{
if
(
this
.
isStarted
()
||
this
.
isComplete
())
{
throw
new
IllegalStateException
(
"该过程只能使用一次"
);
throw
new
IllegalStateException
(
"该过程只能使用一次"
);
...
...
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