Unverified Commit c1c99aa5 authored by Licho's avatar Licho Committed by GitHub

fix: JobConfig constructor useAutoCancel parameter pass wrong value. (#1146)

* fix: JobConfig constructor useAutoCancel parameter pass wrong value.

* chore: format
parent 947fca25
...@@ -53,12 +53,10 @@ public class APIExecuteSqlDTO extends AbstractStatementDTO { ...@@ -53,12 +53,10 @@ public class APIExecuteSqlDTO extends AbstractStatementDTO {
private GatewayConfig gatewayConfig; private GatewayConfig gatewayConfig;
public JobConfig getJobConfig() { public JobConfig getJobConfig() {
Integer savePointStrategy = 0; int savePointStrategy = Asserts.isNotNullString(savePointPath) ? 3 : 0;
if (Asserts.isNotNullString(savePointPath)) {
savePointStrategy = 3;
}
return new JobConfig( return new JobConfig(
type, useResult, useChangeLog, useChangeLog, false, null, true, address, jobName, type, useResult, useChangeLog, useAutoCancel, false, null, true, address, jobName,
isFragment(), useStatementSet, maxRowNum, checkPoint, parallelism, savePointStrategy, isFragment(), useStatementSet, maxRowNum, checkPoint, parallelism, savePointStrategy,
savePointPath, configuration, gatewayConfig); savePointPath, configuration, gatewayConfig);
} }
......
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