Hisoka-X commented on code in PR #50226:
URL: https://github.com/apache/airflow/pull/50226#discussion_r2247011457


##########
providers/apache/seatunnel/tests/seatunnel_sensor_example_dag.py:
##########
@@ -0,0 +1,120 @@
+#
+# 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.
+
+from datetime import datetime, timedelta
+import re
+from airflow import DAG
+from airflow.providers.standard.operators.python import PythonOperator
+
+from airflow.providers.apache.seatunnel.operators.seatunnel_operator import 
SeaTunnelOperator
+from airflow.providers.apache.seatunnel.sensors.seatunnel_sensor import 
SeaTunnelJobSensor
+
+default_args = {
+    'owner': 'airflow',
+    'depends_on_past': False,
+    'email_on_failure': False,
+    'email_on_retry': False,
+    'retries': 1,
+    'retry_delay': timedelta(minutes=5),
+}
+
+# 定义用于从命令输出中提取job_id的函数

Review Comment:
   The chinese comment should be convert to english.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to