This commit is contained in:
shenjian@fangjia.com
2023-03-14 13:22:32 +08:00
parent 6821a74975
commit c0fcafc2fc
2 changed files with 8 additions and 5 deletions
+3 -2
View File
@@ -4,7 +4,8 @@ sys.path.insert(0, '/opt/airflow/dags/repo')
from airflow.operators.bash import BashOperator
import pendulum
from dags.my_dag import MyDAG
import logging
log = logging.getLogger(__name__)
with MyDAG(
"amap_key_generate_dag",
@@ -13,7 +14,7 @@ with MyDAG(
start_date=pendulum.datetime(2023, 3, 11, tz="Asia/Shanghai"),
catchup=True,
) as dag:
print("enter in MyDAG CHILD")
log.info("enter in MyDAG CHILD")
t1 = BashOperator(
task_id='amap_key_generate',
bash_command='python /opt/airflow/dags/repo/dags/business/business/amap_key_generate.py',