serverless / serverless/serverless
Expose RetryPolicy parameter on scheduled function events object
Open
Nobody has claimed this yet.
cat/aws-event-schedule
enhancement
- Dominant language
- JavaScript
- Stars
- 46.9k
- Forks
- 5.7k
- Avg merge
- 10h 7m
- Merged PRs (30d)
- 57
Description
Is there an existing issue for this?
- I have searched existing issues, it hasn't been reported yet
Use case description
I'd like to trigger a lambda function by schedule without retries on failure like this:
myFunction:
events:
- schedule:
rate: cron(30 4 * * ? *)
retryPolicy:
maximumRetryAttempts: 0
Proposed solution (optional)
Expose retryPolicy Parameter to function schedule object similar to EventBus.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the scheduled-function YAML example and compare the referenced EventBus issue (#8625), then locate the schedule-event implementation and its existing tests. Done means the schedule object accepts retryPolicy with maximumRetryAttempts, including the value 0, and the behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, javascript
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100