Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
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
zhaowei
dlink
Commits
a8778570
Commit
a8778570
authored
Apr 06, 2022
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix-358] [pom] Fix to install
parent
0d80b4ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
TaskServiceImpl.java
...src/main/java/com/dlink/service/impl/TaskServiceImpl.java
+11
-12
No files found.
dlink-admin/src/main/java/com/dlink/service/impl/TaskServiceImpl.java
View file @
a8778570
package
com
.
dlink
.
service
.
impl
;
import
org.apache.flink.runtime.jobgraph.SavepointConfigOptions
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.dlink.alert.Alert
;
import
com.dlink.alert.AlertConfig
;
...
...
@@ -32,6 +30,7 @@ import com.dlink.result.SqlExplainResult;
import
com.dlink.service.*
;
import
com.dlink.utils.CustomStringJavaCompiler
;
import
com.dlink.utils.JSONUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
...
...
@@ -528,18 +527,18 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
Savepoints
latestSavepoints
=
savepointsService
.
getLatestSavepointByTaskId
(
task
.
getId
());
if
(
Asserts
.
isNotNull
(
latestSavepoints
))
{
config
.
setSavePointPath
(
latestSavepoints
.
getPath
());
config
.
getConfig
().
put
(
SavepointConfigOptions
.
SAVEPOINT_PATH
.
key
(),
latestSavepoints
.
getPath
());
config
.
getConfig
().
put
(
"execution.savepoint.path"
,
latestSavepoints
.
getPath
());
}
break
;
case
EARLIEST:
Savepoints
earliestSavepoints
=
savepointsService
.
getEarliestSavepointByTaskId
(
task
.
getId
());
if
(
Asserts
.
isNotNull
(
earliestSavepoints
))
{
config
.
setSavePointPath
(
earliestSavepoints
.
getPath
());
config
.
getConfig
().
put
(
SavepointConfigOptions
.
SAVEPOINT_PATH
.
key
(),
earliestSavepoints
.
getPath
());
config
.
getConfig
().
put
(
"execution.savepoint.path"
,
earliestSavepoints
.
getPath
());
}
break
;
case
CUSTOM:
config
.
getConfig
().
put
(
SavepointConfigOptions
.
SAVEPOINT_PATH
.
key
(),
config
.
getSavePointPath
());
config
.
getConfig
().
put
(
"execution.savepoint.path"
,
config
.
getSavePointPath
());
break
;
default
:
config
.
setSavePointPath
(
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