Skip to content Skip to sidebar Skip to footer

Serverless Cron Job Firing Twice

I am not sure why but my webhook is being fired twice in my cron job. So this cron job is suppose to run once every 15 min which it does, but it is firing off twice. I will post th

Solution 1:

Lambda timeout. This might not have been the problem in your case, but it is a common problem that causes this result.

Your lambdas are not getting executed simultaneously but with a bit of a delay. This is a clue that it is not just getting a duplicate execution.

I would guess that your lambda is first terminating with an error (for example timing out - the default lambda timeout is quite small) and the lambda is being rerun after it fails.

I have had this problem with timeouts and it is quite confusing if you don't notice that the lambda has timed out.


Post a Comment for "Serverless Cron Job Firing Twice"