优化导入
This commit is contained in:
@@ -13,6 +13,8 @@ with MyDAG(
|
||||
start_date=pendulum.datetime(2023, 3, 11, tz="Asia/Shanghai"),
|
||||
catchup=True,
|
||||
) as dag:
|
||||
print("enter in MyDAG CHILD")
|
||||
super.__init__()
|
||||
t1 = BashOperator(
|
||||
task_id='amap_key_generate',
|
||||
bash_command='python /opt/airflow/dags/repo/dags/business/business/amap_key_generate.py',
|
||||
|
||||
@@ -4,6 +4,7 @@ from airflow.operators.bash import BashOperator
|
||||
|
||||
|
||||
class MyDAG(DAG):
|
||||
print("enter in MyDAG")
|
||||
def __init__(self, *args, **kwargs):
|
||||
print('SUCCESS')
|
||||
super().__init__(
|
||||
|
||||
Reference in New Issue
Block a user