From a6a382d1a0328f63f13643c145243deff8ed10b9 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 24 Jun 2023 20:39:04 -0700 Subject: try to proceed when failing to notify about job completion should track this as something to retry later? maybe later --- src/ci_driver.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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() -- cgit v1.1