fc-queue-runner: integrate failed paths cache in build dispatch

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I418f007368916de1320dd56f425a5d8f6a6a6964
This commit is contained in:
raf 2026-02-16 23:06:04 +03:00
commit 9efba1bbc7
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 72 additions and 1 deletions

View file

@ -744,6 +744,17 @@ async fn run_build(
)
.await?;
if let Err(e) = repo::failed_paths_cache::insert(
pool,
&build.drv_path,
failure_status,
build.id,
)
.await
{
tracing::warn!(build_id = %build.id, "Failed to cache failed path: {e}");
}
tracing::warn!(build_id = %build.id, "Build failed: {:?}", failure_status);
}
},