Forráskód Böngészése

更新添加青龙任务代码

jack 1 éve
szülő
commit
27de6d9d2c
1 módosított fájl, 6 hozzáadás és 1 törlés
  1. 6 1
      utils/utils_ql_create_tasks.py

+ 6 - 1
utils/utils_ql_create_tasks.py

@@ -77,7 +77,6 @@ def main():
             base_path = os.path.join(project_path, 'base')
             spider_path = os.path.join(project_path, 'spider')
             message_path = os.path.join(project_path, 'message')
-            rss_data_path = os.path.join(project_path, 'rss_data_handel')
             tasks_template = [{
                 'base_tasks': [
                     {
@@ -103,6 +102,12 @@ def main():
                         "command": "python3 {}/base_news_data_collation.py".format(base_path),
                         "schedule": "0 10 6,12,18 * * *",
                         "labels": ["base"]
+                    },
+                    {
+                        "name": "定时刷新 freshrss 订阅源",
+                        "command": "python3 {}/update_feed.py".format(base_path),
+                        "schedule": "0 6,22 * * *",
+                        "labels": ["base"]
                     }
                 ],
                 'spider': [