安装依赖放置在第一个任务中,便于日志查看

This commit is contained in:
shenjian@fangjia.com
2023-03-14 13:36:13 +08:00
parent c0fcafc2fc
commit 78f210db5d
7 changed files with 13 additions and 34 deletions
+8
View File
@@ -0,0 +1,8 @@
import logging
import os
log = logging.getLogger(__name__)
log.info("begin install requirements")
os.system("pip install -I -r /opt/airflow/dags/repo/dags/requirements.txt -i https://repo.fangjia.com/repository/pypi-public/simple/")
log.info("finish install requirements")