various: eliminate redundant disk check; improve error handling

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I1f37cc60380790bc1bf11f143194ad116a6a6964
This commit is contained in:
raf 2026-02-05 22:48:02 +03:00
commit 1c18306822
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 39 additions and 23 deletions

View file

@ -30,6 +30,7 @@ pub struct WorkerPool {
}
impl WorkerPool {
#[allow(clippy::too_many_arguments)]
pub fn new(
db_pool: PgPool,
workers: usize,
@ -277,6 +278,7 @@ async fn try_remote_build(
}
#[tracing::instrument(skip(pool, build, work_dir, log_config, gc_config, notifications_config, signing_config, cache_upload_config), fields(build_id = %build.id, job = %build.job_name))]
#[allow(clippy::too_many_arguments)]
async fn run_build(
pool: &PgPool,
build: &Build,