hailin0 commented on code in PR #8333:
URL: https://github.com/apache/seatunnel/pull/8333#discussion_r1893964347
##########
seatunnel-api/src/main/java/org/apache/seatunnel/api/source/SeaTunnelJobAware.java:
##########
@@ -18,11 +18,27 @@
package org.apache.seatunnel.api.source;
import org.apache.seatunnel.api.common.JobContext;
+import org.apache.seatunnel.api.configuration.ReadonlyConfig;
/** This interface defines the runtime environment of the SeaTunnel job. */
public interface SeaTunnelJobAware {
+ /**
+ * @deprecated instead by {@link
SeaTunnelJobAware#setJobConfigContext(JobContext,
+ * ReadonlyConfig)}
+ */
+ @Deprecated
default void setJobContext(JobContext jobContext) {
// nothing
}
+
+ /**
+ * Set the job config.
+ *
+ * @param jobContext job context(jobId, jobMode)
+ * @param envConfig environment options
+ */
+ default void setJobConfigContext(JobContext jobContext, ReadonlyConfig
envConfig) {
Review Comment:
We can consider get `checkpoint` from `JobContext` to avoid dependency job
config
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]