feat: 改为10s执行一次

This commit is contained in:
caoqianming 2026-02-09 13:53:09 +08:00
parent a750a630df
commit 60463c5ad0
1 changed files with 2 additions and 2 deletions

View File

@ -182,8 +182,8 @@ async fn main() {
// 创建定时任务调度器
let scheduler = JobScheduler::new().await.expect("Failed to create scheduler");
// 创建每10分钟执行一次的任务
let analyze_job = Job::new_async("0 */10 * * * *", move |_uuid, _l| {
// 创建每10s执行一次的任务
let analyze_job = Job::new_async("*/10 * * * * *", move |_uuid, _l| {
Box::pin(async move {
analyze_chunks().await;
})