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