fix(email): complete backfill jobs for empty mailboxes#4068
Conversation
|
Warning Review limit reached
More reviews will be available in 16 minutes and 22 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
A backfill job is only finalized when a finished thread bumps the Redis counter to the job total, so a mailbox with zero threads stayed InProgress forever, leaving the inbox syncing and blocking resyncs. Complete the job directly in init_backfill when total_threads is 0, and likewise in list_threads when the job retrieves no threads at all (stale profile count).
5633f9c to
f40dbc2
Compare
Backfill jobs are only finalized when a finished thread bumps the Redis counter to the job total, so a mailbox with zero threads stayed
InProgressforever — leaving the inbox syncing and blocking resyncs (one in-flight job per link).init_backfillnow completes the job directly whentotal_threads == 0, andlist_threadsdoes the same when the job retrieves no threads at all (covers a stale/approximate Gmail profile count). Closes019eb3d0-de70-758e-98aa-fbb1f4584964.