We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03debdc commit 256f124Copy full SHA for 256f124
site/src/job_queue/mod.rs
@@ -289,8 +289,6 @@ pub async fn cron_main(site_ctxt: Arc<RwLock<Option<Arc<SiteCtxt>>>>, seconds: u
289
let ctxt = site_ctxt.clone();
290
291
loop {
292
- interval.tick().await;
293
-
294
if let Some(ctxt_clone) = {
295
let guard = ctxt.read();
296
guard.as_ref().cloned()
@@ -300,6 +298,8 @@ pub async fn cron_main(site_ctxt: Arc<RwLock<Option<Arc<SiteCtxt>>>>, seconds: u
300
298
Err(e) => log::error!("Cron job failed to execute: {e:?}"),
301
299
}
302
+
+ interval.tick().await;
303
304
305
0 commit comments