优化导入
This commit is contained in:
+3
-1
@@ -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/',
|
||||
)
|
||||
)
|
||||
print('OK')
|
||||
Reference in New Issue
Block a user