right now if mongo is down or not accessible, then you can't access the project page. This PR introduces a circuit breaker with a fallback for the
IsLanguageForgeProjectDataLoader ensuring that it never fails. If the circuit is broken, then we just return a result that says the project is not an LF project. The circuit will stay broken for 60 seconds before trying again (10 minutes in develop where it's expected to not come back up when not available)
I also introduced some configurable timeouts for mongo connections and reduced them to 1 second in develop and 5 seconds in production.
closes #1092
right now if mongo is down or not accessible, then you can't access the project page. This PR introduces a circuit breaker with a fallback for the IsLanguageForgeProjectDataLoader ensuring that it never fails. If the circuit is broken, then we just return a result that says the project is not an LF project. The circuit will stay broken for 60 seconds before trying again (10 minutes in develop where it's expected to not come back up when not available)
I also introduced some configurable timeouts for mongo connections and reduced them to 1 second in develop and 5 seconds in production.