Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to specify timer trigger for 10mins interval in funcraft template #1091

Open
newbaluku opened this issue Mar 4, 2021 · 2 comments
Open

Comments

@newbaluku
Copy link

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
@DevDengChao
Copy link
Contributor

CronExpression: "0 0/10 * * * *"

@newbaluku
Copy link
Author

newbaluku commented Apr 6, 2021

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 :<

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants