新增样本统计

This commit is contained in:
Jian Shen
2022-06-20 11:20:14 +08:00
parent abc6f4c6ad
commit acf58b1b5c
4 changed files with 166 additions and 5 deletions
+20
View File
@@ -0,0 +1,20 @@
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
"district_sell_deal_dag",
# 每周五运行
schedule_interval="0 1 * * 5",
start_date=pendulum.datetime(2022, 6, 20, tz="Asia/Shanghai"),
catchup=True,
) as dag:
t1 = BashOperator(
task_id='district_count_thirdavg_deal',
bash_command='python /opt/airflow/dags/repo/dags/stat/evaluate/district_count_thirdavg_deal.py',
)
t2 = BashOperator(
task_id='district_sell_property',
bash_command='python /opt/airflow/dags/repo/dags/stat/evaluate/district_sell_property.py',
)
t1 >> t2