优化导入

This commit is contained in:
shenjian@fangjia.com
2023-03-14 13:10:09 +08:00
parent 652c48b73c
commit 25c2972c54
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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',
+1
View File
@@ -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__(