Schedule job with normal GET request

aws

#1

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)

#2

it works, in fact. closed.