Search code examples
pythonlambdazappaslack-commands

Why is my slack Slash command app on Lambda invoking every 4 minutes?


I created a slash command for Slack and using Lambda as a serverless method. I followed a couple of tutorials online, built the app locally with Python and flask and then uploaded it with Zappa. The slash command works great but when I take a look at the lambda logs, it shows the function is being invoked every 4 minutes? - I'm obviously getting charged for this and I want it to only invoke when being called.

Can anyone shed some light on this - new to Lambda.

Thanks!


Solution

  • These invocations probably are related to cold start prevention, take a look on this article.

    Regards!