cloudflare / serverless-registry

A container registry backed by Workers and R2.
Apache License 2.0
997 stars 36 forks source link

Garbage collector #48

Closed gabivlj closed 2 months ago

gabivlj commented 2 months ago

Cherry picked from https://github.com/cloudflare/serverless-registry/pull/29 and added a bit of concurrency safety that consists of throwing an error on manifest upload when a gc is ongoing, or if the gc is ongoing it throws an error when uploading a manifest.

We are also moving to the new vitest runner for the test suite and fixed small issues around _catalog pagination that were exposed when moving to miniflare3, which now uses the real workerd runtime.