我正在使用job_scheduler = "1.2.1"
crate 来安排我在 Rust 中的工作。我尝试了一些例子,比如
So for example, a schedule of 0 2,14,26 * * * * would execute on the 2nd, 14th, and 26th minute of every hour.
而且效果很好。但是当我尝试将作业设置为每天早上 8:30 运行时,如下所示
sched.add(Job::new("0 30 8 * * * *".parse().unwrap(), || {
它什么也不做。是不是格式不对?
- 我还尝试再删除一个这样的星号
"0 30 8 * * * "
相同的结果。我不确定是否设置正确,文档也没有为我的案例提供有用的示例。