Skip to content

Commit

Permalink
chore: fix cron scheduler to be hourly
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Jun 3, 2024
1 parent 76d27cd commit 60f19e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/tabby-webserver/src/service/background_job/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub async fn start(
mut receiver: tokio::sync::mpsc::UnboundedReceiver<BackgroundJobEvent>,
) {
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 {
Expand Down

0 comments on commit 60f19e5

Please sign in to comment.