From ea0a812f093bc70825ac270fb3a8df532200ea60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Wed, 22 Jul 2026 09:31:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/ai/dag_ai_stock.py | 2 +- dags/business/dag_amap_key_generate.py | 2 +- dags/business/dag_apiuser_notice.py | 2 +- dags/business/dag_change_new_to_old_seaweed.py | 2 +- dags/business/dag_comm_add.py | 2 +- dags/business/dag_community_summary.py | 2 +- dags/business/dag_didata_sync.py | 2 +- dags/business/dag_evaluate_ratio.py | 2 +- dags/business/dag_fangjia_log.py | 2 +- dags/business/dag_grid_price.py | 2 +- dags/business/dag_send_email.py | 2 +- dags/business/dag_send_sms.py | 2 +- dags/company/dag_company.py | 2 +- dags/jh/dag_evaluate.py | 2 +- dags/jh/dag_merge.py | 2 +- dags/jh/dag_price_exception.py | 2 +- dags/jh/dag_samples_notice.py | 2 +- dags/jh/dag_third_gxd.py | 2 +- dags/jh/dag_third_price.py | 2 +- dags/mt/dag_mt.py | 2 +- dags/office/dag_office_rent.py | 2 +- dags/office/dag_office_sell.py | 2 +- dags/office/rent/base_price.py | 2 +- dags/office/sell/base_price.py | 2 +- dags/poi/dag_district_facilities.py | 2 +- dags/price_exponents/dag_region_price_month.py | 2 +- dags/price_exponents/dag_seaweed_price_month.py | 2 +- dags/shop/dag_shop_rent.py | 2 +- dags/shop/dag_shop_sell.py | 2 +- dags/stat/dag_ai_nonghang_use.py | 2 +- dags/stat/dag_community_count_price_rent.py | 2 +- dags/stat/dag_community_rating.py | 2 +- dags/stat/dag_district_sell_deal.py | 2 +- dags/stat/dag_increase_decrease_city_region.py | 2 +- dags/test/fail_test.py | 2 +- 35 files changed, 35 insertions(+), 35 deletions(-) diff --git a/dags/ai/dag_ai_stock.py b/dags/ai/dag_ai_stock.py index dd128a6..3f5436b 100644 --- a/dags/ai/dag_ai_stock.py +++ b/dags/ai/dag_ai_stock.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="ai_stock_dag", # 每天运行 - schedule_interval="30 8 * * 1-5", + schedule="30 8 * * 1-5", start_date=pendulum.datetime(2025, 11, 10, tz="Asia/Shanghai"), catchup=True, tags=["ai_stock"], diff --git a/dags/business/dag_amap_key_generate.py b/dags/business/dag_amap_key_generate.py index 1bf3551..3ad4dca 100644 --- a/dags/business/dag_amap_key_generate.py +++ b/dags/business/dag_amap_key_generate.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="amap_key_generate_dag", # 每天运行 - schedule_interval="0/1 14 * * *", + schedule="0/1 14 * * *", start_date=pendulum.datetime(2023, 3, 18, tz="Asia/Shanghai"), catchup=True ) as dag: diff --git a/dags/business/dag_apiuser_notice.py b/dags/business/dag_apiuser_notice.py index 71dd0ed..237579a 100644 --- a/dags/business/dag_apiuser_notice.py +++ b/dags/business/dag_apiuser_notice.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="apiuser_notice_dag", # 每小时运行 - schedule_interval="0 * * * * ", + schedule="0 * * * * ", start_date=pendulum.datetime(2023, 7, 10, tz="Asia/Shanghai"), catchup=True, description="API接口监控提醒" diff --git a/dags/business/dag_change_new_to_old_seaweed.py b/dags/business/dag_change_new_to_old_seaweed.py index ba54f04..b5ba7e5 100644 --- a/dags/business/dag_change_new_to_old_seaweed.py +++ b/dags/business/dag_change_new_to_old_seaweed.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="change_new_to_old_seaweed_dag", # 每月1日1点运行 - schedule_interval="0 1 1 * *", + schedule="0 1 1 * *", start_date=pendulum.datetime(2023, 2, 10, tz="Asia/Shanghai"), catchup=True, description="新房变二手房定时脚本" diff --git a/dags/business/dag_comm_add.py b/dags/business/dag_comm_add.py index 040bb2f..0813559 100644 --- a/dags/business/dag_comm_add.py +++ b/dags/business/dag_comm_add.py @@ -8,7 +8,7 @@ from kubernetes.client import models as k8s with DAG( dag_id="comm_add_dag", # 每月20日1点整分运行 - schedule_interval="0 1 20 * *", + schedule="0 1 20 * *", start_date=pendulum.datetime(2023, 5, 8, tz="Asia/Shanghai"), catchup=True, description="小区自动化入库" diff --git a/dags/business/dag_community_summary.py b/dags/business/dag_community_summary.py index 95b2bfd..273ff2a 100644 --- a/dags/business/dag_community_summary.py +++ b/dags/business/dag_community_summary.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="community_summary_dag", # 每月2日1点整分运行 - schedule_interval="0 1 2 * *", + schedule="0 1 2 * *", start_date=pendulum.datetime(2023, 3, 16, tz="Asia/Shanghai"), catchup=True, description="地址输出信息分类数据定时更新" diff --git a/dags/business/dag_didata_sync.py b/dags/business/dag_didata_sync.py index 0be4f0a..c23186a 100644 --- a/dags/business/dag_didata_sync.py +++ b/dags/business/dag_didata_sync.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="didata_sync_dag", # 每月28日3点整分运行 - schedule_interval="0 3 28 * *", + schedule="0 3 28 * *", start_date=pendulum.datetime(2023, 3, 17, tz="Asia/Shanghai"), catchup=True, description="地数相关数据同步type: district或office, 不填默认同步全部" diff --git a/dags/business/dag_evaluate_ratio.py b/dags/business/dag_evaluate_ratio.py index d05811a..51e8bbd 100644 --- a/dags/business/dag_evaluate_ratio.py +++ b/dags/business/dag_evaluate_ratio.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="evaluate_ratio_dag", # 每月1日0点运行 - schedule_interval="0 0 1 * *", + schedule="0 0 1 * *", start_date=pendulum.datetime(2023, 7, 5, tz="Asia/Shanghai"), catchup=True, description="挂牌价与成交价计算价格系数" diff --git a/dags/business/dag_fangjia_log.py b/dags/business/dag_fangjia_log.py index 5e5d670..ba9cae0 100644 --- a/dags/business/dag_fangjia_log.py +++ b/dags/business/dag_fangjia_log.py @@ -7,7 +7,7 @@ from airflow import DAG with DAG( dag_id="fangjia_log_dag", # 每2分钟监控 - schedule_interval=timedelta(minutes=2), + schedule=timedelta(minutes=2), start_date=pendulum.datetime(2024, 8, 14, tz="Asia/Shanghai"), catchup=True, description="OPEN日志监控" diff --git a/dags/business/dag_grid_price.py b/dags/business/dag_grid_price.py index 3eab1f1..608cf4e 100644 --- a/dags/business/dag_grid_price.py +++ b/dags/business/dag_grid_price.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="grid_price_dag", # 每周二运行 - schedule_interval="0 3 * * 2", + schedule="0 3 * * 2", start_date=pendulum.datetime(2023, 5, 9, tz="Asia/Shanghai"), catchup=True, description="全国格子价格计算" diff --git a/dags/business/dag_send_email.py b/dags/business/dag_send_email.py index ff37e33..33b18f0 100644 --- a/dags/business/dag_send_email.py +++ b/dags/business/dag_send_email.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="send_email", # 每月1日8点运行 - schedule_interval="0 8 1 * *", + schedule="0 8 1 * *", start_date=pendulum.datetime(2024, 8, 30, tz="Asia/Shanghai"), catchup=True, description="API用户使用及明细的邮件发送" diff --git a/dags/business/dag_send_sms.py b/dags/business/dag_send_sms.py index 0c725f6..7617f4a 100644 --- a/dags/business/dag_send_sms.py +++ b/dags/business/dag_send_sms.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="send_sms", # 每月1日8点运行 - schedule_interval="0 8 * * *", + schedule="0 8 * * *", start_date=pendulum.datetime(2024, 9, 25, tz="Asia/Shanghai"), catchup=True, description="API用户使用及明细的邮件发送" diff --git a/dags/company/dag_company.py b/dags/company/dag_company.py index 107569f..8b7668c 100644 --- a/dags/company/dag_company.py +++ b/dags/company/dag_company.py @@ -6,7 +6,7 @@ from airflow import DAG with DAG( dag_id="didata_company", - schedule_interval=None, + schedule=None, start_date=pendulum.datetime(2025, 6, 5, tz="Asia/Shanghai"), catchup=True, description="企业涉农处理" diff --git a/dags/jh/dag_evaluate.py b/dags/jh/dag_evaluate.py index 0144d6c..38923be 100644 --- a/dags/jh/dag_evaluate.py +++ b/dags/jh/dag_evaluate.py @@ -4,7 +4,7 @@ from airflow import DAG with DAG( dag_id="evaluate_dag", - schedule_interval="30 16 27 * *", + schedule="30 16 27 * *", start_date=pendulum.datetime(2023, 3, 28, tz="Asia/Shanghai"), catchup=True, description="每月27日估值文件检测" diff --git a/dags/jh/dag_merge.py b/dags/jh/dag_merge.py index b76893f..3c69b7c 100644 --- a/dags/jh/dag_merge.py +++ b/dags/jh/dag_merge.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="merge_dag", # 每日下午4点 - schedule_interval="0 16 * * *", + schedule="0 16 * * *", start_date=pendulum.datetime(2023, 3, 18, tz="Asia/Shanghai"), catchup=True, description="每日融合文件检测, 若想指定检测某一天如20230314,则传参day='20230314'" diff --git a/dags/jh/dag_price_exception.py b/dags/jh/dag_price_exception.py index 2ba443c..8c5d0d6 100644 --- a/dags/jh/dag_price_exception.py +++ b/dags/jh/dag_price_exception.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="price_exception_dag", # 每月23日运行 - schedule_interval="0 10 23 * *", + schedule="0 10 23 * *", start_date=pendulum.datetime(2023, 3, 17, tz="Asia/Shanghai"), catchup=True, description="建行每月价格异常检测脚本,默认检测本月与上月差异, 若对比上月与前月价格,设置year_month=\"202210\"(前月日期即可) 若输出样本存在与否,设置year_month=sample" diff --git a/dags/jh/dag_samples_notice.py b/dags/jh/dag_samples_notice.py index d2668d5..625b86a 100644 --- a/dags/jh/dag_samples_notice.py +++ b/dags/jh/dag_samples_notice.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="samples_notice_dag", # 每月10日1点运行 - schedule_interval="0 0 10 * *", + schedule="0 0 10 * *", start_date=pendulum.datetime(2025, 6, 9, tz="Asia/Shanghai"), catchup=True, description="样本数量监控提醒" diff --git a/dags/jh/dag_third_gxd.py b/dags/jh/dag_third_gxd.py index fee68d8..315615f 100644 --- a/dags/jh/dag_third_gxd.py +++ b/dags/jh/dag_third_gxd.py @@ -4,7 +4,7 @@ from airflow import DAG with DAG( dag_id="third_gxd_dag", - schedule_interval=None, + schedule=None, start_date=pendulum.datetime(2024, 7, 22, tz="Asia/Shanghai"), catchup=True, description="第三方均价及国信达价格输出" diff --git a/dags/jh/dag_third_price.py b/dags/jh/dag_third_price.py index d3f6207..42492f0 100644 --- a/dags/jh/dag_third_price.py +++ b/dags/jh/dag_third_price.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="third_price_dag", # 每月23日运行 - schedule_interval="0 16 18 * *", + schedule="0 16 18 * *", start_date=pendulum.datetime(2023, 3, 17, tz="Asia/Shanghai"), catchup=True, description="建行过滤第三方均价" diff --git a/dags/mt/dag_mt.py b/dags/mt/dag_mt.py index 6e292df..dd6b0ba 100644 --- a/dags/mt/dag_mt.py +++ b/dags/mt/dag_mt.py @@ -8,7 +8,7 @@ output_date = datetime.datetime.now().strftime('%Y%m') with DAG( dag_id="mt_dag", # 每月5日运行 - schedule_interval="0 5 5 * *", + schedule="0 5 5 * *", start_date=pendulum.datetime(2023, 3, 17, tz="Asia/Shanghai"), catchup=True ) as dag: diff --git a/dags/office/dag_office_rent.py b/dags/office/dag_office_rent.py index c04edcb..b202cb5 100644 --- a/dags/office/dag_office_rent.py +++ b/dags/office/dag_office_rent.py @@ -31,7 +31,7 @@ def choose_task(**context): with DAG( dag_id="office_rent_dag", # 每月25日1点运行 - schedule_interval="0 3 25 * *", + schedule="0 3 25 * *", start_date=pendulum.datetime(2025, 10, 28, tz="Asia/Shanghai"), catchup=True, description="写字楼租金价格计算", diff --git a/dags/office/dag_office_sell.py b/dags/office/dag_office_sell.py index 89d7edd..a2de014 100644 --- a/dags/office/dag_office_sell.py +++ b/dags/office/dag_office_sell.py @@ -40,7 +40,7 @@ def choose_after_office(**context): with DAG( dag_id="office_sell_dag", # 每月25日3点运行 - schedule_interval="0 3 25 * *", + schedule="0 3 25 * *", start_date=pendulum.datetime(2025, 1, 1, tz="Asia/Shanghai"), catchup=False, description="写字楼出售价格计算", diff --git a/dags/office/rent/base_price.py b/dags/office/rent/base_price.py index f11a556..7fe6f75 100644 --- a/dags/office/rent/base_price.py +++ b/dags/office/rent/base_price.py @@ -474,4 +474,4 @@ def getOffice(city, district=None, name=None): if __name__ == "__main__": # 测试脚本:直接运行时模拟 Airflow 的上下文 - calc(dag_run=type('DagRun', (), {'conf': {'city': '北京', 'district': '朝阳', 'name': '中核华建大厦'}})) \ No newline at end of file + calc(dag_run=type('DagRun', (), {'conf': {}})) \ No newline at end of file diff --git a/dags/office/sell/base_price.py b/dags/office/sell/base_price.py index c0c10f6..027af65 100644 --- a/dags/office/sell/base_price.py +++ b/dags/office/sell/base_price.py @@ -479,4 +479,4 @@ def getOffice(city, district=None, name=None): if __name__ == "__main__": # 测试脚本:直接运行时模拟 Airflow 的上下文 - calc(dag_run=type('DagRun', (), {'conf': {'city': '西安'}})) \ No newline at end of file + calc(dag_run=type('DagRun', (), {'conf': {'city': None}})) \ No newline at end of file diff --git a/dags/poi/dag_district_facilities.py b/dags/poi/dag_district_facilities.py index 105498e..7164bf8 100644 --- a/dags/poi/dag_district_facilities.py +++ b/dags/poi/dag_district_facilities.py @@ -10,7 +10,7 @@ from airflow import DAG with DAG( dag_id="district_facilities_dag", # 每月1日1点运行 - schedule_interval="0 1 1 * *", + schedule="0 1 1 * *", start_date=pendulum.datetime(2024, 7, 17, tz="Asia/Shanghai"), catchup=True ) as dag: diff --git a/dags/price_exponents/dag_region_price_month.py b/dags/price_exponents/dag_region_price_month.py index 5187db3..7277de2 100644 --- a/dags/price_exponents/dag_region_price_month.py +++ b/dags/price_exponents/dag_region_price_month.py @@ -10,7 +10,7 @@ from airflow import DAG with DAG( dag_id="region_price_month_dag", # 每月1日1点运行 - schedule_interval="0 1 1 * *", + schedule="0 1 1 * *", start_date=pendulum.datetime(2024, 12, 6, tz="Asia/Shanghai"), catchup=True, description="区域房价指数定时计算" diff --git a/dags/price_exponents/dag_seaweed_price_month.py b/dags/price_exponents/dag_seaweed_price_month.py index db3782e..5a9c161 100644 --- a/dags/price_exponents/dag_seaweed_price_month.py +++ b/dags/price_exponents/dag_seaweed_price_month.py @@ -10,7 +10,7 @@ from airflow import DAG with DAG( dag_id="seaweed_price_month_dag", # 每月1日1点运行 - schedule_interval="0 1 1 * *", + schedule="0 1 1 * *", start_date=pendulum.datetime(2024, 12, 6, tz="Asia/Shanghai"), catchup=True, description="小区房价指数定时计算" diff --git a/dags/shop/dag_shop_rent.py b/dags/shop/dag_shop_rent.py index fd8e6a5..bbbc83b 100644 --- a/dags/shop/dag_shop_rent.py +++ b/dags/shop/dag_shop_rent.py @@ -9,7 +9,7 @@ from airflow import DAG with DAG( dag_id="shop_rent_dag", - schedule_interval="0 4 25 * *", + schedule="0 4 25 * *", start_date=pendulum.datetime(2025, 4, 10, tz="Asia/Shanghai"), catchup=True, description="商铺租金城市区域商圈均价计算" diff --git a/dags/shop/dag_shop_sell.py b/dags/shop/dag_shop_sell.py index 5776f1a..13efe74 100644 --- a/dags/shop/dag_shop_sell.py +++ b/dags/shop/dag_shop_sell.py @@ -9,7 +9,7 @@ from airflow import DAG with DAG( dag_id="shop_sell_dag", - schedule_interval="0 6 25 * *", + schedule="0 6 25 * *", start_date=pendulum.datetime(2025, 4, 10, tz="Asia/Shanghai"), catchup=True, description="商铺出售城市区域商圈均价计算" diff --git a/dags/stat/dag_ai_nonghang_use.py b/dags/stat/dag_ai_nonghang_use.py index c70a54a..f8895c2 100644 --- a/dags/stat/dag_ai_nonghang_use.py +++ b/dags/stat/dag_ai_nonghang_use.py @@ -5,7 +5,7 @@ import pendulum with DAG( dag_id="ai_nonghang_use_dag", # 每天9:40 - schedule_interval="40 9 * * 1-5", + schedule="40 9 * * 1-5", start_date=pendulum.datetime(2025, 2, 13, tz="Asia/Shanghai"), description="AI估价农行使用情况", catchup=True diff --git a/dags/stat/dag_community_count_price_rent.py b/dags/stat/dag_community_count_price_rent.py index cd28a63..8340f24 100644 --- a/dags/stat/dag_community_count_price_rent.py +++ b/dags/stat/dag_community_count_price_rent.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="count_price_rent_dag", # 每周日运行 - schedule_interval="0 10 * * 7", + schedule="0 10 * * 7", start_date=pendulum.datetime(2023, 3, 17, tz="Asia/Shanghai"), description="常用字段覆盖率统计", catchup=True diff --git a/dags/stat/dag_community_rating.py b/dags/stat/dag_community_rating.py index d2da035..d1a1285 100644 --- a/dags/stat/dag_community_rating.py +++ b/dags/stat/dag_community_rating.py @@ -5,7 +5,7 @@ import pendulum with DAG( dag_id="community_rating_dag", # 每月的最后一天运行 - schedule_interval="0 20 * * 6", + schedule="0 20 * * 6", start_date=pendulum.datetime(2025, 6, 9, tz="Asia/Shanghai"), description="小区楼盘评级计算", catchup=True diff --git a/dags/stat/dag_district_sell_deal.py b/dags/stat/dag_district_sell_deal.py index b32a2a2..184ecb4 100644 --- a/dags/stat/dag_district_sell_deal.py +++ b/dags/stat/dag_district_sell_deal.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="district_sell_deal_dag", # 每周五运行 - schedule_interval="0 1 * * 5", + schedule="0 1 * * 5", start_date=pendulum.datetime(2023, 3, 17, tz="Asia/Shanghai"), catchup=True ) as dag: diff --git a/dags/stat/dag_increase_decrease_city_region.py b/dags/stat/dag_increase_decrease_city_region.py index ab63f58..b8e822a 100644 --- a/dags/stat/dag_increase_decrease_city_region.py +++ b/dags/stat/dag_increase_decrease_city_region.py @@ -5,7 +5,7 @@ from airflow import DAG with DAG( dag_id="increase_decrease_city_region_dag", # 每月的最后一天运行 - schedule_interval="0 10 L * *", + schedule="0 10 L * *", start_date=pendulum.datetime(2024, 5, 30, tz="Asia/Shanghai"), description="城市区域涨跌幅数据统计", catchup=True diff --git a/dags/test/fail_test.py b/dags/test/fail_test.py index 1c7b219..3842f3f 100644 --- a/dags/test/fail_test.py +++ b/dags/test/fail_test.py @@ -26,7 +26,7 @@ dag = DAG( 'test_failure_notification', #default_args=default_args, start_date=datetime(2025, 4, 22), - schedule_interval=None + schedule=None ) task = PythonOperator(