Feature Request: make timeout and memory size available in @app.* annotations
- Dominant language
- Python
- Stars
- 11.1k
- Forks
- 1k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 2
Description
The issue#347 added support for timeout, memory size through the config.json file.
I propose that the same settings should be made available through inline configuration annotations i.e. as optional parameters in @app.route, @app.on_sns_message, @app.on_sqs_message, etc
The power of inline configuration is unique to chalice and a big reason I prefer it over the competing framework, "serverless".
A separate file is a maintenance headache, especially when you have multiple stages and multiple endpoints in the same app.py
Contributor guide
Research direction
Start by comparing the existing timeout and memory-size handling in config.json with the inline annotations used in app.py, including @app.route, @app.on_sns_message, and @app.on_sqs_message. Done means those annotations accept the settings as optional parameters and apply them consistently across the supported endpoints and stages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- backend, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100