mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 07:45:35 +01:00
Update schedule
This commit is contained in:
@@ -504,7 +504,7 @@ pub async fn update() -> Result<(), Box<dyn std::error::Error>> {
|
||||
pub async fn cron_jobs() {
|
||||
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 {
|
||||
Ok(_) => log::info!("Updated"),
|
||||
Err(err) => log::info!("Update err: {:?}", err),
|
||||
|
||||
Reference in New Issue
Block a user