mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-04 00:18:40 +01:00
Usually maintenance mode is disabled. If the call throws, which we see a lot of when a unleash instance is in terminating state, we should return a default value. By having it throw inside of the memoizee function, the response is not cached, and it will trigger new calls until it return a cachable result. |
||
---|---|---|
.. | ||
maintenance-controller.ts | ||
maintenance-middleware.ts | ||
maintenance-service.test.ts | ||
maintenance-service.ts |