From 652c48b73c18b619c25de5fae21b8a500ed760b5 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Tue, 14 Mar 2023 12:23:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/my_dag.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dags/my_dag.py b/dags/my_dag.py index 0e0a459..e970601 100644 --- a/dags/my_dag.py +++ b/dags/my_dag.py @@ -5,10 +5,12 @@ from airflow.operators.bash import BashOperator class MyDAG(DAG): def __init__(self, *args, **kwargs): + print('SUCCESS') super().__init__( *args, **kwargs ) BashOperator( task_id='install_required', bash_command='pip install -I -r requirements.txt -i https://repo.fangjia.com/repository/pypi-public/simple/', - ) \ No newline at end of file + ) + print('OK') \ No newline at end of file