various: replace silent error discards with logged warnings
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I465d760b5330980270b64b4a89abc09f6a6a6964
This commit is contained in:
parent
9bbc1754d9
commit
38ed7faee2
7 changed files with 147 additions and 40 deletions
|
|
@ -43,8 +43,10 @@ pub async fn run(
|
|||
job = %build.job_name,
|
||||
"Aggregate build: all constituents completed"
|
||||
);
|
||||
let _ = repo::builds::start(&pool, build.id).await;
|
||||
let _ = repo::builds::complete(
|
||||
if let Err(e) = repo::builds::start(&pool, build.id).await {
|
||||
tracing::warn!(build_id = %build.id, "Failed to start aggregate build: {e}");
|
||||
}
|
||||
if let Err(e) = repo::builds::complete(
|
||||
&pool,
|
||||
build.id,
|
||||
BuildStatus::Completed,
|
||||
|
|
@ -52,7 +54,10 @@ pub async fn run(
|
|||
None,
|
||||
None,
|
||||
)
|
||||
.await;
|
||||
.await
|
||||
{
|
||||
tracing::warn!(build_id = %build.id, "Failed to complete aggregate build: {e}");
|
||||
}
|
||||
continue;
|
||||
},
|
||||
Ok(false) => {
|
||||
|
|
@ -84,8 +89,10 @@ pub async fn run(
|
|||
drv = %build.drv_path,
|
||||
"Dedup: reusing result from existing build"
|
||||
);
|
||||
let _ = repo::builds::start(&pool, build.id).await;
|
||||
let _ = repo::builds::complete(
|
||||
if let Err(e) = repo::builds::start(&pool, build.id).await {
|
||||
tracing::warn!(build_id = %build.id, "Failed to start dedup build: {e}");
|
||||
}
|
||||
if let Err(e) = repo::builds::complete(
|
||||
&pool,
|
||||
build.id,
|
||||
BuildStatus::Completed,
|
||||
|
|
@ -93,7 +100,10 @@ pub async fn run(
|
|||
existing.build_output_path.as_deref(),
|
||||
None,
|
||||
)
|
||||
.await;
|
||||
.await
|
||||
{
|
||||
tracing::warn!(build_id = %build.id, "Failed to complete dedup build: {e}");
|
||||
}
|
||||
continue;
|
||||
},
|
||||
_ => {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue