|
@@ -77,6 +77,7 @@ 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')
|
|
|
|
|
+ manual_path = os.path.join(project_path, 'manual')
|
|
|
tasks_template = [{
|
|
tasks_template = [{
|
|
|
'base_tasks': [
|
|
'base_tasks': [
|
|
|
{
|
|
{
|
|
@@ -186,6 +187,20 @@ def main():
|
|
|
"labels": ["message"]
|
|
"labels": ["message"]
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
|
|
+ 'manual': [
|
|
|
|
|
+ {
|
|
|
|
|
+ "name": "手动读取rss订阅新闻",
|
|
|
|
|
+ "command": "python3 {}/read_news.py".format(manual_path),
|
|
|
|
|
+ "schedule": "0 0 1 1 *",
|
|
|
|
|
+ "labels": ["manual"]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "name": "3dos每日签到",
|
|
|
|
|
+ "command": "python3 {}/3dos_daily.py".format(manual_path),
|
|
|
|
|
+ "schedule": "0 0 1 1 *",
|
|
|
|
|
+ "labels": ["manual"]
|
|
|
|
|
+ },
|
|
|
|
|
+ ]
|
|
|
}]
|
|
}]
|
|
|
|
|
|
|
|
for task_template in tasks_template:
|
|
for task_template in tasks_template:
|