Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhengxingjian opened this issue Jul 28, 2023 · 1 comment
Open

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

zhengxingjian opened this issue Jul 28, 2023 · 1 comment

Comments

@zhengxingjian
Copy link

zhengxingjian commented Jul 28, 2023

`

use tokio_cron_scheduler::{Job, JobScheduler};

#[tokio::main]
async fn main() -> Result<(), Box> {
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
Copy link
Author

NO Support using local time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant