Skip to content

Commit

Permalink
Changed back job cancel order to fires second 0
Browse files Browse the repository at this point in the history
  • Loading branch information
grunch committed Aug 19, 2023
1 parent 45b62d8 commit 78a7651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub async fn cron_scheduler(sched: &JobScheduler) -> Result<(), anyhow::Error> {
.unwrap();

// This job is used to cancel or republish pending orders that are not updated for more than `expiration_seconds` seconds
let job_cancel_orders = Job::new_async("* * * * * *", move |uuid, mut l| {
let job_cancel_orders = Job::new_async("0 * * * * *", move |uuid, mut l| {
Box::pin(async move {
info!("Create a pool to connect to db");
let pool = crate::db::connect().await.unwrap();
Expand Down

0 comments on commit 78a7651

Please sign in to comment.