添加估值测试脚本
This commit is contained in:
@@ -11,12 +11,13 @@ with DAG(
|
|||||||
description="建行每月价格异常检测脚本,默认检测本月与上月差异, 若对比上月与前月价格,设置type=\"202210\"(前月日期即可) 若输出样本存在与否,设置type=sample"
|
description="建行每月价格异常检测脚本,默认检测本月与上月差异, 若对比上月与前月价格,设置type=\"202210\"(前月日期即可) 若输出样本存在与否,设置type=sample"
|
||||||
) as dag:
|
) as dag:
|
||||||
t1 = BashOperator(
|
t1 = BashOperator(
|
||||||
task_id='price_exception',
|
|
||||||
bash_command='python /opt/airflow/dags/repo/dags/jh/price/price_exception.py {{dag_run.conf["type"] if "type" in dag_run.conf}}',
|
|
||||||
)
|
|
||||||
t2 = BashOperator(
|
|
||||||
task_id='price_evaluation',
|
task_id='price_evaluation',
|
||||||
bash_command='python /opt/airflow/dags/repo/dags/jh/price/price_evaluation.py {{dag_run.conf["year_month"] if "year_month" in dag_run.conf}}',
|
bash_command='python /opt/airflow/dags/repo/dags/jh/price/price_evaluation.py {{dag_run.conf["year_month"] if "year_month" in dag_run.conf}}',
|
||||||
)
|
)
|
||||||
|
t2 = BashOperator(
|
||||||
|
task_id='price_exception',
|
||||||
|
bash_command='python /opt/airflow/dags/repo/dags/jh/price/price_exception.py {{dag_run.conf["type"] if "type" in dag_run.conf}}',
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
t1 >> t2
|
t1 >> t2
|
||||||
|
|||||||
Reference in New Issue
Block a user