-
Notifications
You must be signed in to change notification settings - Fork 1
fix: harden API-cost webhook outbox retries (MYX-79) #869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
2ce19dc
fix: harden API cost webhook outbox retries
groupthinking fb33cdb
fix: run API cost outbox with production app lifecycle
groupthinking 61892a9
test: preserve explicit forced retry coverage
groupthinking a93fe87
test: cover durable API cost outbox worker
groupthinking 09d7891
test: cover API cost monitor app lifecycle
groupthinking cdea1ae
fix(cost): move outbox database work off event loop
groupthinking 9810209
fix(api): harden cost monitor lifespan shutdown
groupthinking 43ffe10
test(api): preserve application errors during cleanup
groupthinking 3ae774c
test(cost): prove worker database work runs off loop
groupthinking 4eddcfb
merge: resolve main into api-cost outbox branch
Copilot 57d9f54
Merge branch 'main' into agent/harden-api-cost-outbox
groupthinking 94c2005
fix: count only successful outbox deliveries
groupthinking 768a392
test: cover in-memory and failed outbox delivery semantics
groupthinking fb79912
fix: keep API-cost delivery in the dedicated worker
groupthinking cd9964a
test: drop obsolete FastAPI worker lifecycle coverage
groupthinking 11797e9
refactor(api-cost): manage outbox sessions through session scope
groupthinking 7eacfdb
style(api-cost): normalize outbox method spacing
groupthinking 53eb795
fix(api-cost): enqueue alerts with usage transaction
groupthinking 8f944bd
test(api-cost): prove atomic alert staging
groupthinking 184f1ac
test(api-cost): enforce single atomic persistence call
groupthinking 3b4d66e
fix(api-cost): preserve Gemini usage metadata
groupthinking 1c3ee57
fix(api-cost): track canonical Gemini usage
groupthinking adbfb6b
test(api-cost): preserve Gemini usage metadata
groupthinking 45edc01
test(api-cost): prove canonical Gemini tracking
groupthinking 1fd74ff
Merge branch 'main' into agent/harden-api-cost-outbox
groupthinking fd7c82d
chore: synchronize authoritative coverage harness from main (#861)
groupthinking 2195c02
fix(api-cost): fence claims and bill canonical Gemini usage
groupthinking 453e383
fix(api-cost): fence claims and bill canonical Gemini usage
groupthinking ebfdefd
fix(api-cost): fence claims and bill canonical Gemini usage
groupthinking ff806c1
fix(api-cost): fence claims and bill canonical Gemini usage
groupthinking c6d123b
fix(api-cost): fence claims and bill canonical Gemini usage
groupthinking 0b3bbf2
fix(cost-monitor): preserve legacy unspecified-model costing
groupthinking 9276cf1
test(cost-monitor): cover unspecified-model compatibility
groupthinking 3093abf
fix(outbox): align recovery queries with worker indexes
groupthinking cc6fe44
test(outbox): cover canonical index and claim timestamp
groupthinking File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
631 changes: 540 additions & 91 deletions
631
src/youtube_extension/backend/services/api_cost_monitor.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.