From 650ebbb2692e6771ef0e47220e3ffcc001961f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Jia=20=28=E8=B4=BE=E6=80=9D=E7=91=9E=29?= Date: Tue, 13 Jun 2023 15:19:27 +0800 Subject: [PATCH] fix log store days as str Change-Id: Iba4b68fcc8f997e0c02cf10882bbb10b32f96474 --- venus/task/core/delete_es_index_task.py | 2 +- venus/task/timer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/venus/task/core/delete_es_index_task.py b/venus/task/core/delete_es_index_task.py index fd3ee98..1d0e92a 100644 --- a/venus/task/core/delete_es_index_task.py +++ b/venus/task/core/delete_es_index_task.py @@ -51,7 +51,7 @@ class DeleteESIndexTask(object): LOG.error(_LE("the config of log_save_days do not exist")) return - LOG.info(_LI("elasticsearch indexes(log) save days: %d"), len_d) + LOG.info(_LI("elasticsearch indexes(log) save days: %s"), len_d) today = time.strftime('%Y-%m-%d') try: indexes_array = self.search_lib.get_all_index() diff --git a/venus/task/timer.py b/venus/task/timer.py index eb39c43..deedf95 100644 --- a/venus/task/timer.py +++ b/venus/task/timer.py @@ -31,4 +31,4 @@ def init_advanced_timer(): def add_jobs(): sched.add_job(adapter.delete_es_index_job, TRIGGER_INTERVAL, - seconds=300, id='delete_es_index_job') + seconds=60, id='delete_es_index_job')