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
Hi!
I am likely doing something wrong, but nothing comes obvious from the docs, unfortunately.
This is what I do in the constructor:
this.retryPolicy=retry(handleWhen((err)=>!(errinstanceofOptimisticLockError)),{maxAttempts: configService.get('RESILIENCY_MAX_RETRIES'),backoff: newExponentialBackoff(),},);this.circuitBreaker=ctCircuitBreaker(handleAll,{halfOpenAfter: configService.get('CIRCUIT_BREAKER_HALF_OPEN_AFTER'),breaker: newConsecutiveBreaker(// +1 for the initial request. Has to be aligned with retries to get it working properlyconfigService.get('RESILIENCY_MAX_RETRIES')+1,),});this.resiliencePolicy=wrap(this.retryPolicy,this.circuitBreaker);}
The top level flush function is not throwing, even though the this.repository.getEntityManager().flush() is throwing, which results in completely bad behaviour of the app.
The error is basically swallowed by the execute function.
The text was updated successfully, but these errors were encountered:
The execute will either return the successful result or propagate the last error the retryPolicy encountered. If you want to observe errors thrown from the circuit breaker, or failures during the retry, you can use policy.onFailure (docs)
Hi!
I am likely doing something wrong, but nothing comes obvious from the docs, unfortunately.
This is what I do in the constructor:
When I try to do:
The top level
flush
function is not throwing, even though thethis.repository.getEntityManager().flush()
is throwing, which results in completely bad behaviour of the app.The error is basically swallowed by the
execute
function.The text was updated successfully, but these errors were encountered: