Commit 1efc8c84 authored by Yaowentong's avatar Yaowentong

修改告警调度

parent ca97dae2
...@@ -343,14 +343,12 @@ def task_queue_backlog(): ...@@ -343,14 +343,12 @@ def task_queue_backlog():
if __name__ == '__main__': if __name__ == '__main__':
logger.info("监控调度器启动") logger.info("监控调度器启动")
scheduler = BlockingScheduler(timezone="Asia/Shanghai") scheduler = BlockingScheduler(timezone="Asia/Shanghai")
#
scheduler.add_job( scheduler.add_job(
fail_task_send_feishu, fail_task_send_feishu,
trigger='cron', trigger='cron',
hour='0,6,12,18', minute=10,
minute=3,
id='fail_task_send_feishu', id='fail_task_send_feishu',
max_instances=1, max_instances=1,
coalesce=True, coalesce=True,
...@@ -383,5 +381,6 @@ if __name__ == '__main__': ...@@ -383,5 +381,6 @@ if __name__ == '__main__':
"task_queue_backlog(每小时), " "task_queue_backlog(每小时), "
"sync_third_usage_once(每小时)" "sync_third_usage_once(每小时)"
) )
scheduler.start()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment