improvement(billing): share the enterprise reporting usage read across processes - #8325
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
…and harden the shared read
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 12 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Summary
SET … NXwith a jittered TTL, so a slower, older sum never overwrites a fresher one or extends its life. There is no lock or leaseclaimCreditsThreshold) sends each threshold at most once. A new period or a changed limit re-arms it with no reset write, and concurrent completions can't both sendType of Change
Testing
reporting-usage-cache.integration.ts,usage-threshold-email.integration.ts). Six of the seven fail on the pre-change code. The Redis-unreachable test goes red if the read deadline is removedlib/billingandlib/logs/executionunit suites, type-check, lint, andcheck:auditspassChecklist