Skip to content

Background jobs are referencing crates/versions by name instead of ID #11349

Open
@Turbo87

Description

@Turbo87

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions