Skip to content

Calling circuit breaker by decorator #4

Open
@lesnik512

Description

@lesnik512

@NikitaKozlovtcev What do you think, will it be useful to have an opportunity using circuit breaker as a decorator?

From https://github.com/fabfuel/circuitbreaker:

from circuitbreaker import circuit

@circuit(failure_threshold=10, expected_exception=ConnectionError)
def external_call():
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions