Scoria.Req.Steps.CircuitBreaker (scoria v0.1.0)

Copy Markdown View Source

Req request step that checks the circuit breaker state before executing the request.

Summary

Functions

Runs the step on the given Req.Request. If the request has a :model_id option and the circuit is open, halts the request with an error. Otherwise, returns the request unmodified.

Functions

run(request)

Runs the step on the given Req.Request. If the request has a :model_id option and the circuit is open, halts the request with an error. Otherwise, returns the request unmodified.