fc-common: add failed paths cache infrastructure
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I35f9bfb044160151cf73c43ed9ada3476a6a6964
This commit is contained in:
parent
4c56b192f0
commit
65a6fd853d
5 changed files with 105 additions and 9 deletions
9
crates/common/migrations/016_failed_paths_cache.sql
Normal file
9
crates/common/migrations/016_failed_paths_cache.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- Failed paths cache: prevents rebuilding known-failing derivations
|
||||
CREATE TABLE failed_paths_cache (
|
||||
drv_path TEXT PRIMARY KEY,
|
||||
source_build_id UUID,
|
||||
failure_status TEXT,
|
||||
failed_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
CREATE INDEX idx_failed_paths_cache_failed_at ON failed_paths_cache(failed_at);
|
||||
Loading…
Add table
Add a link
Reference in a new issue