fix log store days as str

Change-Id: Iba4b68fcc8f997e0c02cf10882bbb10b32f96474
This commit is contained in:
Frank Jia (贾思瑞) 2023-06-13 15:19:27 +08:00
parent aa9759b056
commit 650ebbb269
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class DeleteESIndexTask(object):
LOG.error(_LE("the config of log_save_days do not exist")) LOG.error(_LE("the config of log_save_days do not exist"))
return 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') today = time.strftime('%Y-%m-%d')
try: try:
indexes_array = self.search_lib.get_all_index() indexes_array = self.search_lib.get_all_index()

View File

@ -31,4 +31,4 @@ def init_advanced_timer():
def add_jobs(): def add_jobs():
sched.add_job(adapter.delete_es_index_job, TRIGGER_INTERVAL, sched.add_job(adapter.delete_es_index_job, TRIGGER_INTERVAL,
seconds=300, id='delete_es_index_job') seconds=60, id='delete_es_index_job')