Skip to content

Reuse breaker for other storage paths

Right now the circuitbreaker (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11449) only works for git storages defined in gitlab.yml.

We should extract some of the implementation to reuse it for checking other mounts so we can use it for asset hosts as well.

/cc @ernstvn @DouweM