mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-01 21:07:34 +00:00
feat: Log how many backlogged jobs will be run on worker start
This commit is contained in:
1 file changed
+2
-1
@@ -71,7 +71,8 @@ impl crate::Service for Service {
|
||||
let (yielder, mut yielding) = mpsc::channel(5);
|
||||
|
||||
let latest_job_id = self.data.current_job_id().await;
|
||||
debug!(latest_job_id, "Starting room queue worker");
|
||||
let backlog_count = self.data.txn_jobid_job.count().await;
|
||||
debug!(latest_job_id, backlog_count, "Starting room queue worker");
|
||||
|
||||
let backlog = std::pin::pin!(self.data.stream_all_pending_jobs());
|
||||
let mut combined_recv = backlog.chain(&mut recv);
|
||||
|
||||
Reference in new issue
Block a user