Skip to content

Commit c61f837

Browse files
authored
feat: schedule warmer event every 5 minutes (#11)
1 parent 5ff97ed commit c61f837

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

serverless.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ functions:
4848
timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds)
4949
events:
5050
- httpApi: '*'
51+
- schedule:
52+
rate: rate(5 minutes)
53+
input:
54+
warmer: true
5155
environment:
5256
APP_DEBUG: ${param:app_debug}
5357
CACHE_TTL: ${param:cache_ttl}

0 commit comments

Comments
 (0)