Skip to content
Snippets Groups Projects

db: prevent duplicate jobs

Merged Warren Gifford requested to merge as/prevent-duplicates into main

Created by: asdine

When enqueueing a job we make sure to replace queued job with the new one if they are for the same couple project / external service id.

Note: We will probably need an index, I will add one in another PR. Index added here https://github.com/sourcegraph/sourcegraph/pull/36986

Related to #36450 (closed)

Test plan

Improved a unit test

Merge request reports

Merged by avatar (May 6, 2025 8:38pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading