tokio-cron-scheduler icon indicating copy to clipboard operation
tokio-cron-scheduler copied to clipboard

"0 0/1 15 * * ?" execute no result

Open zhengxingjian opened this issue 1 year ago • 1 comments

`

use tokio_cron_scheduler::{Job, JobScheduler};

#[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let sched = JobScheduler::new().await?;

sched.add(Job::new("0 0/1 15 * * ?", move |uuid, l| {
    println!("15th run.....");
})?).await?;
// sched.start().await?;
tokio::spawn(async move {sched.start().await});
tokio::time::sleep(core::time::Duration::from_secs(10000)).await;
Ok(())

}

`

zhengxingjian avatar Jul 28 '23 07:07 zhengxingjian

NO Support using local time

zhengxingjian avatar Jul 29 '23 01:07 zhengxingjian