Open
Description
Current Behavior
Some of our background jobs (e.g. sync_crate_feed
) are referencing crates (and sometimes versions) by names. This can cause issues when crates are deleted and later reregistered while a background job is still in the queue.
Expected Behavior
Background jobs should use crate/version IDs instead of names to avoid these issues, since the IDs will always be unique.
Steps To Reproduce
No response
Environment
No response
Anything else?
This is not much of an issue in practice since regular crate deletions block re-registrations for 24 hours and within that timeframe the background jobs should have finished. It's still worth fixing though...