diff options
author | iximeow <me@iximeow.net> | 2023-06-24 20:39:04 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-06-24 20:39:04 -0700 |
commit | a6a382d1a0328f63f13643c145243deff8ed10b9 (patch) | |
tree | ed624f4ab807812617ba6f1b6ff1fa6cd34822a9 /src | |
parent | 202d3fca10d9a5c1af69080f8141dd19da489294 (diff) |
try to proceed when failing to notify about job completion
should track this as something to retry later? maybe later
Diffstat (limited to 'src')
-rw-r--r-- | src/ci_driver.rs | 4 |
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() |