Yield Break from RetryState::wait() on last iteration#119
Conversation
|
That problem seems more in scope of the application that uses instant-acme. Not to retry only once, the application could enter a pending state and retry an certificate enrollment from scratch not before the given Retry-After date-time. For example if the CA does not issue certs the next days because you requested too many recently. If the application can observe the Retry-After value with the instant-acme api, then an application has the data at hand to handle this temporary error condition. Maybe extend |
Yielding a specific error variant seems like a decent potential way out of this problem... @cpu thoughts? |
That sounds reasonable to me 👍 I agree with @christianhoelzl that this feels like a place where higher level application logic should take-over. |
As suggested by @christianhoelzl in #116 (comment):
Doesn't really solve the original problem I highlighted, let's discuss here: