feat: Make fingerprint unique to each queue

This commit is contained in:
Adriano Caloiaro 2024-03-02 10:48:59 -07:00
parent c16dd3d580
commit e8d7473864
No known key found for this signature in database
GPG key ID: C2BC56DE73CE3F75
2 changed files with 2 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DROP INDEX IF EXISTS neoq_jobs_fingerprint_unique_idx;
CREATE UNIQUE INDEX IF NOT EXISTS neoq_jobs_fingerprint_unique_idx ON neoq_jobs (queue, fingerprint, status) WHERE NOT (status = 'processed');