projectHistoryFailures holds one document per project whose history updates project-history could not process, or for which it started a resync. The document is deleted again as soon as processing works. project-history writes it in services/project-history/app/js/ErrorRecorder.js; its type is in services/project-history/app/js/mongo-types.ts:3-24. Web also has a Mongoose schema for it (services/web/app/src/models/ProjectHistoryFailure.mjs:5-19), but no web code uses that model.
Fields
Who Writes It
Who Reads It
Indexes
Notes
- A document stays until a flush of the project succeeds or the project is deleted (
clearError above), so each document marks a project whose last flush or resync has not succeeded yet.
- Error strings starting with
OError: are returned as Error: (ErrorRecorder.js:18-26); the stored value is unchanged.
Last modified on November 14, 2026