jerryshao commented on code in PR #7772:
URL: https://github.com/apache/gravitino/pull/7772#discussion_r2228515368


##########
core/src/main/java/org/apache/gravitino/connector/job/JobExecutor.java:
##########
@@ -0,0 +1,83 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.gravitino.connector.job;
+
+import java.io.Closeable;
+import java.util.Map;
+import org.apache.gravitino.annotation.DeveloperApi;
+import org.apache.gravitino.exceptions.NoSuchJobException;
+import org.apache.gravitino.job.JobHandle;
+import org.apache.gravitino.job.JobTemplate;
+
+/**
+ * The JobExecutor interface defines the API for executing jobs in a specific 
Job runner, for
+ * example, Airflow, local runner, etc. The developer can implement this 
interface to adapt to the
+ * specific job runner. The Gravitino core will use this interface to submit 
jobs, get job status,
+ * etc.
+ */
+@DeveloperApi
+public interface JobExecutor extends Closeable {
+
+  /**
+   * Initialize the job executor with the given configurations.
+   *
+   * @param configs A map of configuration key-value pairs.
+   */
+  void initialize(Map<String, String> configs);
+
+  /**
+   * Submit a job with the given name and job template to the external job 
runner.

Review Comment:
   Yes, local runner would be the one used for test and light-weighted jobs 
running on the server of the Gravitino. For production use, user can implement 
the external job runner like Livy, Airflow, etc.



-- 
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]

Reply via email to