42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From fc2c7e76531306699e5c5dd0273dfe5fe521d2f8 Mon Sep 17 00:00:00 2001
|
|
From: rabbitali <wenxin32@foxmail.com>
|
|
Date: Tue, 24 Oct 2023 20:39:44 +0800
|
|
Subject: [PATCH 2/2] fix data correction task execution error
|
|
|
|
---
|
|
apollo/database/proxy/task.py | 2 +-
|
|
conf/apollo_crontab.yml | 5 ++---
|
|
2 files changed, 3 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/apollo/database/proxy/task.py b/apollo/database/proxy/task.py
|
|
index b1d53c4..17cb274 100644
|
|
--- a/apollo/database/proxy/task.py
|
|
+++ b/apollo/database/proxy/task.py
|
|
@@ -3214,7 +3214,7 @@ class TaskProxy(TaskMysqlProxy, TaskEsProxy):
|
|
task_id_list = task_cve_id_list + task_repo_id_list
|
|
|
|
task_query = self.session.query(Task).filter(Task.task_id.in_(task_id_list)).all()
|
|
- running_task_list = [(task.task_id, task.task_type, task.create_time) for task in task_query]
|
|
+ running_task_list = [(task.task_id, task.create_time) for task in task_query]
|
|
return running_task_list, host_info_list
|
|
|
|
def update_host_status(self, host_id_list: list):
|
|
diff --git a/conf/apollo_crontab.yml b/conf/apollo_crontab.yml
|
|
index 29c17b4..4a1f1e9 100644
|
|
--- a/conf/apollo_crontab.yml
|
|
+++ b/conf/apollo_crontab.yml
|
|
@@ -44,6 +44,5 @@
|
|
type: data_correct
|
|
enable: true
|
|
timed:
|
|
- day_of_week: 0-6
|
|
- hour: 3
|
|
- trigger: cron
|
|
\ No newline at end of file
|
|
+ minutes: 20
|
|
+ trigger: interval
|
|
\ No newline at end of file
|
|
--
|
|
2.33.0
|
|
|