how to specify timer trigger for 10mins interval in funcraft template
- Dominant language
- JavaScript
- Stars
- 931
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
I used funcraft to deploy a timer function compute instance. I would like it to be triggered at interval of 10mins. But I can't find a way to specify this in template.yml. I have used a cron expression of "0 0,10,20,30,40,50 * * * *" to archive this. Kindly advice on how to specify this in my funcraft template. Thanks.
my-app:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: index.handler
Runtime: nodejs12
CodeUri: './'
MemorySize: 1024
InstanceConcurrency: 5
Timeout: 20
EnvironmentVariables:
'NODE_ENV': 'development'
Events:
tmTrigger:
Type: Timer
Properties:
Payload: "Timer triggered!"
CronExpression: "0 0,10,20,30,40,50 * * * *"
Enable: true
Contributor guide
No contributing guide indexed for this repository
Research direction
Review the Timer event configuration in template.yml, starting with the CronExpression and Enable properties shown in the report. Compare the supported schedule syntax with the requested ten-minute interval and clarify the valid template form; done when the configuration and resulting trigger behavior are unambiguous.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cloud
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100