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
I would like to know if you have in the roadmap the implementation of some kind of listener to control the state changes of the circuits, I think it is very interesting and especially useful for metric control.
Would you be open to any kind of contribution?.
We have been develop a first version using inheritance.
def state_change(self, old_state, new_state):
# Called when the circuit breaker state changes.
pass
def before_callfunc(self, func, *args, **kwargs):
# Called before the circuit breaker decorated function has been called
pass
def succes(self):
# Called when the circuit breaker decorated function finished ok"
pass
def failure(self, exc_type, exc_value, _traceback):
# Called when the circuit breaker decorated function finished with selected exception"
pass
Best regards
The text was updated successfully, but these errors were encountered:
I've been looking for something like this as well. Would be great to be able to send notifications when a circuit changes state for monitoring purposes...
I would like to know if you have in the roadmap the implementation of some kind of listener to control the state changes of the circuits, I think it is very interesting and especially useful for metric control.
Would you be open to any kind of contribution?.
We have been develop a first version using inheritance.
Best regards
The text was updated successfully, but these errors were encountered: