various: eliminate redundant disk check; improve error handling
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I1f37cc60380790bc1bf11f143194ad116a6a6964
This commit is contained in:
parent
d620ec5454
commit
1c18306822
5 changed files with 39 additions and 23 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue