feat: Log how many backlogged jobs will be run on worker start

This commit is contained in:
timedout committed 2026-12-01 18:26:26 +00:00
1 parent a2e9c1c964
commit f28c1cef93
1 file changed
+2 -1
+2 -1
View File
@@ -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);