Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud Functions gen2 retried multiple times without retry on and schedule turned off

I am new to google cloud functions coming from amazon lambda. i setup my function to not retry on errors and it is kicked off by a scheduler every hour. right now the code is in a development phase. after it failed yesterday with a memory issue, i disabled the scheduled job until i could look at it again the next day. when going through the logs for the service for yesterday though i see the job ran for about 3 hours after i disabled the job every 3 mins after it kept failing with the memory issue. it finally stopped after 3 hours because the data it was trying to pick up was smaller than the memory needed. i was wondering has anyone else had this happen before where the schedule is turned off the the trigger on the cloud function doesnt have retry on errors checked. 

0 1 1,586
1 REPLY 1

Hi @mariomc,

Welcome to the Google Cloud Community!

If you are using Cloud Scheduler along with Pub/Sub to call your functions, it could be the work of Subscription Retry Policy. This isn't a feature that you can turn on or off. What happens here is that when Pub/Sub attempts to deliver a message but the subscriber can't acknowledge it, It will automatically try to resend it.

You can also get in touch with Google Cloud Support for additional support. Let me know if it helped, thanks!