修改定时任务cron表达式
This commit is contained in:
parent
c34cc356f3
commit
8bc0a2c372
@ -1,7 +1,7 @@
|
||||
use tokio_cron_scheduler::{Job, JobSchedulerError};
|
||||
|
||||
pub fn get_task() -> Result<Job, JobSchedulerError> {
|
||||
Job::new("0/10 * * * * ?", |_uuid, _l| {
|
||||
Job::new("0 0 0/1 * * ?", |_uuid, _l| {
|
||||
tracing::info!("定时任务执行中...");
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user