zhammer / morning-cd-listens

Morning.cd listens microservice
MIT License
0 stars 0 forks source link

Intercept warmup events #9

Closed zhammer closed 5 years ago

zhammer commented 5 years ago

https://github.com/FidelLimited/serverless-plugin-warmup invokes the lambda with the request event {'source': 'serverless-plugin-warmup'}. This PR adds a decorator to intercept these messages and immediately return a 204 No Content response rather than processing and failing.

204 is used mainly to distinguish from real success responses.

zhammer commented 5 years ago

Should resolve https://sentry.io/zach-hammer/morning-cd-listens/issues/815331628/