summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-06-24 20:39:04 -0700
committeriximeow <me@iximeow.net>2023-06-24 20:39:04 -0700
commita6a382d1a0328f63f13643c145243deff8ed10b9 (patch)
treeed624f4ab807812617ba6f1b6ff1fa6cd34822a9
parent202d3fca10d9a5c1af69080f8141dd19da489294 (diff)
try to proceed when failing to notify about job completion
should track this as something to retry later? maybe later
-rw-r--r--src/ci_driver.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ci_driver.rs b/src/ci_driver.rs
index d0e56cb..c236cb3 100644
--- a/src/ci_driver.rs
+++ b/src/ci_driver.rs
@@ -212,7 +212,9 @@ impl ClientJob {
let repo_id = self.dbctx.repo_id_by_remote(self.job.remote_id).unwrap().expect("remote exists");
for notifier in self.dbctx.notifiers_by_repo(repo_id).expect("can get notifiers") {
- notifier.tell_complete_job(&self.dbctx, repo_id, &self.sha, self.job.id, result.clone()).await.expect("can notify");
+ if let Err(e) = notifier.tell_complete_job(&self.dbctx, repo_id, &self.sha, self.job.id, result.clone()).await {
+ eprintln!("could not notify {:?}: {:?}", notifier.remote_path, e);
+ }
}
let now = SystemTime::now()