refactor: 全量升级 31 个 DAG 的 BashOperator 导入路径,消除 Airflow 3.0 的废弃警告
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
小区周边配套DAG
|
||||
"""
|
||||
from airflow.operators.bash import BashOperator
|
||||
from airflow.providers.standard.operators.bash import BashOperator
|
||||
from airflow.operators.python import PythonOperator, BranchPythonOperator
|
||||
from office.rent.base_price import calc
|
||||
import pendulum
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from airflow.operators.bash import BashOperator
|
||||
from airflow.providers.standard.operators.bash import BashOperator
|
||||
from airflow.operators.python import PythonOperator, BranchPythonOperator
|
||||
from airflow.operators.empty import EmptyOperator
|
||||
from office.sell.base_price import calc
|
||||
|
||||
Reference in New Issue
Block a user