Unverified Commit 5ceb8bcf authored by luoshangjie's avatar luoshangjie Committed by GitHub

[Fix][Admin] Fix the issue of disabled checkpoints not taking effect (#3606)

parent 327b510e
...@@ -226,6 +226,9 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen ...@@ -226,6 +226,9 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
log.info("Init savePoint"); log.info("Init savePoint");
config.setSavePointPath(savepoints.getPath()); config.setSavePointPath(savepoints.getPath());
config.getConfigJson().put("execution.savepoint.path", savepoints.getPath()); // todo: 写工具类处理相关配置 config.getConfigJson().put("execution.savepoint.path", savepoints.getPath()); // todo: 写工具类处理相关配置
} else {
// When disabling checkpoints, delete the checkpoint path
config.setSavePointPath(null);
} }
if (GatewayType.get(task.getType()).isDeployCluster()) { if (GatewayType.get(task.getType()).isDeployCluster()) {
log.info("Init gateway config, type:{}", task.getType()); log.info("Init gateway config, type:{}", task.getType());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment