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
42616dd9
Unverified
Commit
42616dd9
authored
Apr 06, 2022
by
aiwenmo
Committed by
GitHub
Apr 06, 2022
Browse files
Options
Browse Files
Download
Plain Diff
[Fix-358] [pom] Fix to install
[Fix-358] [pom] Fix to install
parents
c83f5fe5
a8778570
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 @
42616dd9
package
com
.
dlink
.
service
.
impl
;
package
com
.
dlink
.
service
.
impl
;
import
org.apache.flink.runtime.jobgraph.SavepointConfigOptions
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.dlink.alert.Alert
;
import
com.dlink.alert.Alert
;
import
com.dlink.alert.AlertConfig
;
import
com.dlink.alert.AlertConfig
;
...
@@ -32,6 +30,7 @@ import com.dlink.result.SqlExplainResult;
...
@@ -32,6 +30,7 @@ import com.dlink.result.SqlExplainResult;
import
com.dlink.service.*
;
import
com.dlink.service.*
;
import
com.dlink.utils.CustomStringJavaCompiler
;
import
com.dlink.utils.CustomStringJavaCompiler
;
import
com.dlink.utils.JSONUtil
;
import
com.dlink.utils.JSONUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -528,18 +527,18 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
...
@@ -528,18 +527,18 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
Savepoints
latestSavepoints
=
savepointsService
.
getLatestSavepointByTaskId
(
task
.
getId
());
Savepoints
latestSavepoints
=
savepointsService
.
getLatestSavepointByTaskId
(
task
.
getId
());
if
(
Asserts
.
isNotNull
(
latestSavepoints
))
{
if
(
Asserts
.
isNotNull
(
latestSavepoints
))
{
config
.
setSavePointPath
(
latestSavepoints
.
getPath
());
config
.
setSavePointPath
(
latestSavepoints
.
getPath
());
config
.
getConfig
().
put
(
SavepointConfigOptions
.
SAVEPOINT_PATH
.
key
(),
latestSavepoints
.
getPath
());
config
.
getConfig
().
put
(
"execution.savepoint.path"
,
latestSavepoints
.
getPath
());
}
}
break
;
break
;
case
EARLIEST:
case
EARLIEST:
Savepoints
earliestSavepoints
=
savepointsService
.
getEarliestSavepointByTaskId
(
task
.
getId
());
Savepoints
earliestSavepoints
=
savepointsService
.
getEarliestSavepointByTaskId
(
task
.
getId
());
if
(
Asserts
.
isNotNull
(
earliestSavepoints
))
{
if
(
Asserts
.
isNotNull
(
earliestSavepoints
))
{
config
.
setSavePointPath
(
earliestSavepoints
.
getPath
());
config
.
setSavePointPath
(
earliestSavepoints
.
getPath
());
config
.
getConfig
().
put
(
SavepointConfigOptions
.
SAVEPOINT_PATH
.
key
(),
earliestSavepoints
.
getPath
());
config
.
getConfig
().
put
(
"execution.savepoint.path"
,
earliestSavepoints
.
getPath
());
}
}
break
;
break
;
case
CUSTOM:
case
CUSTOM:
config
.
getConfig
().
put
(
SavepointConfigOptions
.
SAVEPOINT_PATH
.
key
(),
config
.
getSavePointPath
());
config
.
getConfig
().
put
(
"execution.savepoint.path"
,
config
.
getSavePointPath
());
break
;
break
;
default
:
default
:
config
.
setSavePointPath
(
null
);
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