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
f5a4283e
Commit
f5a4283e
authored
Sep 26, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志合并
parent
1b99bf63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
JavaFlowFreeTaskCallbackThread.java
.../java/com/byit/thread/JavaFlowFreeTaskCallbackThread.java
+16
-1
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/JavaFlowFreeTaskCallbackThread.java
View file @
f5a4283e
...
...
@@ -127,8 +127,23 @@ public class JavaFlowFreeTaskCallbackThread implements Runnable {
List
<
JobTaskRunLogWithBLOBs
>
jobTaskRunLogWithBLOBsByFlowIdAndRunId
=
mythJobTaskRunLogService
.
findJobTaskRunLogWithBLOBsByFlowIdAndRunId
(
runRecording
.
getFlowId
(),
runRecording
.
getRunId
());
JobTaskRunLogWithBLOBs
jobTaskRunLogWithBLOBs
=
jobTaskRunLogWithBLOBsByFlowIdAndRunId
.
stream
().
filter
(
log
->
log
.
getNodeName
().
equals
(
specialJavaNode
.
getNodeName
())).
findFirst
().
orElse
(
null
);
if
(
jobTaskRunLogWithBLOBs
!=
null
)
{
String
logPath
=
mergeLog
(
jobTaskRunLogWithBLOBs
.
getLogRemotelyPath
(),
specialJavaNode
.
getThisLogUrlPath
());
String
logRemotelyPath
=
jobTaskRunLogWithBLOBs
.
getLogRemotelyPath
();
//平台传过来的
String
thisLogUrlPath
=
specialJavaNode
.
getThisLogUrlPath
();
if
(
StringUtils
.
isBlank
(
logRemotelyPath
))
{
FileSystem
fileSystem
=
SpringUtil
.
getBean
(
FileSystem
.
class
);
byte
[]
sourceLogBytes
=
fileSystem
.
downloaderFile
(
thisLogUrlPath
);
String
runMsg
=
jobTaskRunLogWithBLOBs
.
getRunMsg
();
byte
[]
bytes
=
stringToByteArray
(
runMsg
);
byte
[]
mergeFile
=
mergeFile
(
sourceLogBytes
,
bytes
);
Map
<
String
,
String
>
fileMate
=
fileSystem
.
getFileMate
(
thisLogUrlPath
);
String
logPath
=
fileSystem
.
uploadFile
(
mergeFile
,
"log"
,
fileMate
);
jobTaskRunLogWithBLOBs
.
setLogRemotelyPath
(
logPath
);
}
else
{
String
logPath
=
mergeLog
(
logRemotelyPath
,
thisLogUrlPath
);
jobTaskRunLogWithBLOBs
.
setLogRemotelyPath
(
logPath
);
}
return
jobTaskRunLogWithBLOBs
;
}
return
null
;
...
...
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