Introduce a Configuration to Manage and Disable Commands or Controllers #100
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Request
Description
In the early versions of Commandler, we included a
TestRunnerwhich could test all controllers through aController#test()method. This has been removed as this defeats the purpose of lazy controller initialization. It's also somewhat wasteful to call test methods for many controllers depending on what they're doing to test if they're working as intended.We will be superseding this with an alternative system where commands can let Commandler know that something has gone wrong with a command, and a configuration in Commandler which can disable commands or controllers if they hit an error threshold.
Uncaught exceptions should count as a failure by default, otherwise we can provide users with a way to manually report a failure.
The configuration should include:
Motivation
Occasionally APIs can be down or have problems, or at some point a command doesn't work as it was meant to. During these times it's better to shut the command/controller down temporarily rather than let the controller go ham with exceptions, or spamming an API that's already down.