serpent-os / boulder-d-legacy

Replaced by Rust tooling
https://serpentos.com
21 stars 7 forks source link

boulder/controller: manually catch and notify promote failure #83

Closed GZGavinZhao closed 1 year ago

GZGavinZhao commented 1 year ago

Ref: #80.

Previously, any exception thrown in the upstreamcache.promote method would simply cause the boulder process to hang. Not quite friendly!

Therefore, we wrap the promote method in a try-catch block and manually call onFetchFail with the appropriate failure message when a package fails to get promoted.