how to specify timer trigger for 10mins interval in funcraft template
newbaluku opened this issue · comments
newbaluku commented
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
邓超 commented
CronExpression: "0 0/10 * * * *"
newbaluku commented
Yup. have already figured it out after some try and error.
Thanks anyway!
Something for sure, badly needed someone to update Alibaba's FC documentations :<