Skip to content

codeintel: Fix error on worker reprocessing

Warren Gifford requested to merge ef/worker-retry-error into main

Created by: efritz

Ignore unique constraint violations from writeData. This error occurring means that we've half-processed a record (we write to two different datastores, so it's possible to have lsif data but no completed metadata), but when we try to reprocess it we hit a duplicate data error from the lsifstore (which is the only part that previously succeeded).

Currently these records should only go into the errored state, which is why we haven't seen it before. We may introduce different error retry/resetting schemes, in which case this condition needs to not be a fatal error (otherwise all retries are destined to fail unconditionally).

Merge request reports

Loading