修改定时任务cron表达式

This commit is contained in:
李运家 2024-09-21 16:12:02 +08:00
parent c34cc356f3
commit 8bc0a2c372

View File

@ -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!("定时任务执行中...");
})
}