Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Sep 4, 2025

This PR adds a new cloudfront_invalidation_queue database table that tracks which paths need to be invalidated. The PR also adds a ProcessCloudfrontInvalidationQueue background job, which sends invalidation requests to CloudFront until the queue is empty.

The reason for this implementation is that CloudFront has a hard limit on the number of invalidations that can be processed concurrently, and we are occasionally hitting these limits on workspace publishes or when deleting larger batches of spam crates.

@Turbo87 Turbo87 added the C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear label Sep 4, 2025
@Turbo87 Turbo87 requested a review from a team September 4, 2025 00:41
@Turbo87 Turbo87 force-pushed the cloudfront-invalidations branch from 4cce58d to 909bb22 Compare September 4, 2025 05:21
@Turbo87 Turbo87 force-pushed the cloudfront-invalidations branch from 909bb22 to 231426b Compare September 4, 2025 16:34
@Turbo87 Turbo87 force-pushed the cloudfront-invalidations branch from 231426b to ace6a30 Compare September 4, 2025 16:37
@Turbo87 Turbo87 merged commit 5136b31 into rust-lang:main Sep 4, 2025
10 checks passed
@Turbo87 Turbo87 deleted the cloudfront-invalidations branch September 4, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants