Update schedule

This commit is contained in:
2022-10-07 20:05:49 +06:00
parent 82913a4752
commit 6c8397e7a5

View File

@@ -504,7 +504,7 @@ pub async fn update() -> Result<(), Box<dyn std::error::Error>> {
pub async fn cron_jobs() { pub async fn cron_jobs() {
let job_scheduler = JobScheduler::new().await.unwrap(); let job_scheduler = JobScheduler::new().await.unwrap();
let update_job = match Job::new_async("0 0 2 * * *", |_uuid, _l| Box::pin(async { let update_job = match Job::new_async("0 0 3 * * *", |_uuid, _l| Box::pin(async {
match update().await { match update().await {
Ok(_) => log::info!("Updated"), Ok(_) => log::info!("Updated"),
Err(err) => log::info!("Update err: {:?}", err), Err(err) => log::info!("Update err: {:?}", err),