change job inteval

Change-Id: Ie0489f06481c94cdb0b2223f3407674fa414366e
This commit is contained in:
JiaSiRui 2024-04-16 23:19:15 +08:00 committed by jiasirui
parent 81058281be
commit e678899a82

View File

@ -31,8 +31,8 @@ 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=60, id='delete_es_index_job') seconds=120, id='delete_es_index_job')
sched.add_job(adapter.delete_anomaly_record_job, TRIGGER_INTERVAL, sched.add_job(adapter.delete_anomaly_record_job, TRIGGER_INTERVAL,
seconds=600, id='delete_anomaly_record_job') seconds=600, id='delete_anomaly_record_job')
sched.add_job(adapter.anomaly_detect_job, TRIGGER_INTERVAL, sched.add_job(adapter.anomaly_detect_job, TRIGGER_INTERVAL,
seconds=60, id='anomaly_detect_job') seconds=120, id='anomaly_detect_job')