openwhisk
openwhisk copied to clipboard
add config to fail async scheduler throttles as whisk errors
Description
The scheduler throttling activations can be asynchronous off the api path so a 429 is not returned to denote a throttle. The user must get the activation and look at why it failed. Action developer errors are generally non-retryable issues whereas whisk errors are usually considered retryable for the user. Though still not a perfect classification this new failure mode probably needs a new status code of throttle type, but that can be done later. This allows you to configure whether you want these errors to be action developer errors or whisk errors
Related issue and scope
- [ ] I opened an issue to propose and discuss this change (#????)
My changes affect the following components
- [ ] API
- [ ] Controller
- [ ] Message Bus (e.g., Kafka)
- [ ] Loadbalancer
- [X] Scheduler
- [ ] Invoker
- [ ] Intrinsic actions (e.g., sequences, conductors)
- [ ] Data stores (e.g., CouchDB)
- [ ] Tests
- [ ] Deployment
- [ ] CLI
- [ ] General tooling
- [ ] Documentation
Types of changes
- [ ] Bug fix (generally a non-breaking change which closes an issue).
- [X] Enhancement or new feature (adds new functionality).
- [ ] Breaking change (a bug fix or enhancement which changes existing behavior).
Checklist:
- [X] I signed an Apache CLA.
- [X] I reviewed the style guides and followed the recommendations (Travis CI will check :).
- [ ] I added tests to cover my changes.
- [ ] My changes require further changes to the documentation.
- [ ] I updated the documentation where necessary.