From e87060a940f17d3d535e550c578c02d24596d3e0 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Fri, 19 Aug 2022 08:59:48 +0000 Subject: [PATCH] scheduler is changed --- src/schedulers/balance/scheduler.rs | 4 ++-- src/schedulers/game/scheduler.rs | 2 +- src/schedulers/member/scheduler.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/schedulers/balance/scheduler.rs b/src/schedulers/balance/scheduler.rs index 0072619..88394b0 100644 --- a/src/schedulers/balance/scheduler.rs +++ b/src/schedulers/balance/scheduler.rs @@ -65,7 +65,7 @@ impl Scheduler { } async fn balance_for_user(&'static self) -> Result<(), Box> { - let j_synchronization = Job::new_async("0 0 0/1 * * *", move |_uuid, _l| { + let j_synchronization = Job::new_async("0 0/3 * * * ?", move |_uuid, _l| { Box::pin(async move { let start_at = (chrono::Utc::now()).timestamp(); @@ -137,7 +137,7 @@ impl Scheduler { } async fn balance_for_partner(&'static self) -> Result<(), Box> { - let j_synchronization = Job::new_async("0 0 0/1 * * *", move |_uuid, _l| { + let j_synchronization = Job::new_async("0 0/3 * * * ?", move |_uuid, _l| { Box::pin(async move { let start_at = (chrono::Utc::now()).timestamp(); diff --git a/src/schedulers/game/scheduler.rs b/src/schedulers/game/scheduler.rs index 6d22df0..da9d774 100644 --- a/src/schedulers/game/scheduler.rs +++ b/src/schedulers/game/scheduler.rs @@ -64,7 +64,7 @@ impl Scheduler { } async fn list_vendors(&'static self) -> Result<(), Box> { - let j_synchronization = Job::new_async("0 0 0/1 * * *", move |_uuid, _l| { + let j_synchronization = Job::new_async("0 0/3 * * * ?", move |_uuid, _l| { Box::pin(async move { let start_at = (chrono::Utc::now()).timestamp(); diff --git a/src/schedulers/member/scheduler.rs b/src/schedulers/member/scheduler.rs index c4265e6..20c4f90 100644 --- a/src/schedulers/member/scheduler.rs +++ b/src/schedulers/member/scheduler.rs @@ -60,7 +60,7 @@ impl Scheduler { } async fn list_members(&'static self) -> Result<(), Box> { - let j_synchronization = Job::new_async("0 0 0/1 * * *", move |_uuid, _l| { + let j_synchronization = Job::new_async("0 0/3 * * * ?", move |_uuid, _l| { Box::pin(async move { let start_at = (chrono::Utc::now()).timestamp();