Commit 1efc8c84 authored by Yaowentong's avatar Yaowentong

修改告警调度

parent ca97dae2
......@@ -343,14 +343,12 @@ def task_queue_backlog():
if __name__ == '__main__':
logger.info("监控调度器启动")
scheduler = BlockingScheduler(timezone="Asia/Shanghai")
#
scheduler.add_job(
fail_task_send_feishu,
trigger='cron',
hour='0,6,12,18',
minute=3,
minute=10,
id='fail_task_send_feishu',
max_instances=1,
coalesce=True,
......@@ -383,5 +381,6 @@ if __name__ == '__main__':
"task_queue_backlog(每小时), "
"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