Schedule job with normal GET request

What I want to do is, regularly trigger API call to todos endpoint (curl https://<api_gateway>/dev/todos)

  list:
    handler: todos/list.list
    events:
      - http:
          path: todos
          method: get
          cors: true
      - schedule: rate(5 minutes)

But seems the schedule job doesn’t run every 5 minutes, are there anything wrong for my understanding?

Do I have to split them into two events?

  list:
    handler: todos/list.list
    events:
      - http:
          path: todos
          method: get
          cors: true

  listSchedule:
    handler: todos/list.list
    events:
      - schedule: rate(5 minutes)
1 Like

it works, in fact. closed.

it worked for me too.