Skip to content

Commit

Permalink
[FLINK-35226][rest] Deprecate execution-mode in ExecutionConfigInfo r…
Browse files Browse the repository at this point in the history
…elated rest api
  • Loading branch information
1996fanrui committed May 16, 2024
1 parent a8cf2ba commit 0c28e1c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.apache.flink.api.common.JobID;
import org.apache.flink.configuration.ConfigurationUtils;
import org.apache.flink.runtime.rest.handler.job.JobConfigHandler;
import org.apache.flink.runtime.rest.messages.job.JobDetailsInfo;
import org.apache.flink.runtime.rest.util.RestMapperUtils;
import org.apache.flink.util.Preconditions;

Expand Down Expand Up @@ -168,12 +169,14 @@ public JobConfigInfo deserialize(
/** Nested class to encapsulate the execution configuration. */
public static final class ExecutionConfigInfo {

public static final String FIELD_NAME_EXECUTION_MODE = "execution-mode";
@Deprecated public static final String FIELD_NAME_EXECUTION_MODE = "execution-mode";
public static final String FIELD_NAME_RESTART_STRATEGY = "restart-strategy";
public static final String FIELD_NAME_PARALLELISM = "job-parallelism";
public static final String FIELD_NAME_OBJECT_REUSE_MODE = "object-reuse-mode";
public static final String FIELD_NAME_GLOBAL_JOB_PARAMETERS = "user-config";

/** @deprecated Use {@link JobDetailsInfo#getJobType()} instead. */
@Deprecated
@JsonProperty(FIELD_NAME_EXECUTION_MODE)
private final String executionMode;

Expand Down

0 comments on commit 0c28e1c

Please sign in to comment.