feat: introduce soft limits for billing errors (#486)
Description
Billing soft failure:
- introduce soft limits for billing errors (max 3 attempts)
- allow hot-reloading of billing configuration
Related issue
#486
Examples
2 failures are ok (soft failure), 3rd one is not.
So if, say, at 10:00 it's a soft failure, at 11:00 it's again, only on 12:00 features will be blocked. This will protect customers from outages or Platform errors which are supposed to be fixes within 2-3 hours.
Checklist
-
MR description has been reviewed -
MR changes are functionally tested -
MR does NOT have API/CLI changes OR there are API/CLI changes and they have been reviewed & DOCS ARE ADJUSTED (reference doc, etc) -
MR does NOT have UI changes OR there are UI changes and they have been reviewed & UX IS REVIEWED
Closes #486
Edited by Nikolay Samokhvalov