scheduler is changed
This commit is contained in:
parent
a26d5bb6bc
commit
e87060a940
|
@ -65,7 +65,7 @@ impl Scheduler {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn balance_for_user(&'static self) -> Result<(), Box<dyn std::error::Error>> {
|
async fn balance_for_user(&'static self) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
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 {
|
Box::pin(async move {
|
||||||
let start_at = (chrono::Utc::now()).timestamp();
|
let start_at = (chrono::Utc::now()).timestamp();
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ impl Scheduler {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn balance_for_partner(&'static self) -> Result<(), Box<dyn std::error::Error>> {
|
async fn balance_for_partner(&'static self) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
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 {
|
Box::pin(async move {
|
||||||
let start_at = (chrono::Utc::now()).timestamp();
|
let start_at = (chrono::Utc::now()).timestamp();
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ impl Scheduler {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn list_vendors(&'static self) -> Result<(), Box<dyn std::error::Error>> {
|
async fn list_vendors(&'static self) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
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 {
|
Box::pin(async move {
|
||||||
let start_at = (chrono::Utc::now()).timestamp();
|
let start_at = (chrono::Utc::now()).timestamp();
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ impl Scheduler {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn list_members(&'static self) -> Result<(), Box<dyn std::error::Error>> {
|
async fn list_members(&'static self) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
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 {
|
Box::pin(async move {
|
||||||
let start_at = (chrono::Utc::now()).timestamp();
|
let start_at = (chrono::Utc::now()).timestamp();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user