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