优化导入
This commit is contained in:
+3
-1
@@ -5,10 +5,12 @@ from airflow.operators.bash import BashOperator
|
|||||||
|
|
||||||
class MyDAG(DAG):
|
class MyDAG(DAG):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
print('SUCCESS')
|
||||||
super().__init__(
|
super().__init__(
|
||||||
*args, **kwargs
|
*args, **kwargs
|
||||||
)
|
)
|
||||||
BashOperator(
|
BashOperator(
|
||||||
task_id='install_required',
|
task_id='install_required',
|
||||||
bash_command='pip install -I -r requirements.txt -i https://repo.fangjia.com/repository/pypi-public/simple/',
|
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