新增写字楼出售价格重算
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
from airflow.operators.bash import BashOperator
|
||||
from airflow.operators.python import PythonOperator
|
||||
from office.sell.base_price import calc
|
||||
from office.sell.fill_base_price import fill_base_price
|
||||
|
||||
import pendulum
|
||||
|
||||
@@ -21,9 +22,10 @@ with DAG(
|
||||
python_callable=calc,
|
||||
provide_context=True
|
||||
)
|
||||
# t2 = BashOperator(
|
||||
# task_id='fill_base_price',
|
||||
# bash_command='python /opt/airflow/dags/repo/dags/office/sell/fill_base_price.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}}',
|
||||
# )
|
||||
t2 = PythonOperator(
|
||||
task_id='base_price',
|
||||
python_callable=fill_base_price,
|
||||
provide_context=True
|
||||
)
|
||||
t1 >> t2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user