From 60f19e528d95c5f574633ff0b2f97c966074fbc6 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Mon, 3 Jun 2024 11:24:26 +0800 Subject: [PATCH] chore: fix cron scheduler to be hourly --- ee/tabby-webserver/src/service/background_job/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/tabby-webserver/src/service/background_job/mod.rs b/ee/tabby-webserver/src/service/background_job/mod.rs index 4dbad3f9f3ca..b2fd76767991 100644 --- a/ee/tabby-webserver/src/service/background_job/mod.rs +++ b/ee/tabby-webserver/src/service/background_job/mod.rs @@ -34,7 +34,7 @@ pub async fn start( mut receiver: tokio::sync::mpsc::UnboundedReceiver, ) { let mut hourly = - CronStream::new(Schedule::from_str("1 * * * * *").expect("Invalid cron expression")) + CronStream::new(Schedule::from_str("@hourly").expect("Invalid cron expression")) .into_stream(); tokio::spawn(async move {