You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per my understanding, when opossum marks the circuit HALF_OPEN state, it allows all the requests. And when it receives the first response, it marks the circuit as CLOSED / OPEN based on the response. Shouldn't we just allow a single request instead of all the requests?
Code that I'm referring to :
if (!this.closed && !this.pendingClose) {
/**
* Emitted when the circuit breaker is open and failing fast
* @event CircuitBreaker#reject
* @type {Error}
*/
const error = buildError('Breaker is open', 'EOPENBREAKER');
this.emit('reject', error);
return fallback(this, error, args) ||
Promise.reject(error);
}
The text was updated successfully, but these errors were encountered:
As per my understanding, when opossum marks the circuit HALF_OPEN state, it allows all the requests. And when it receives the first response, it marks the circuit as CLOSED / OPEN based on the response. Shouldn't we just allow a single request instead of all the requests?
Code that I'm referring to :
The text was updated successfully, but these errors were encountered: