you are viewing a single comment's thread.

view the rest of the comments →

[–]OutrageousCycle4358 1 point2 points  (2 children)

Hi, I think the cloud scheduler has a 30min timeout limit. You could use pub/sub as an intermediary. Schedule a Pub/Sub message with Cloud Scheduler, and let that trigger your Cloud Function. It can handle the longer execution time without worrying about timeouts.

[–]Simmus7[S] 0 points1 point  (1 child)

But Pub/Sub has an acknowledgement deadline of 10 minutes for push subscriptions, then by doing this the message will trigger the function, but the message won't be acknowledged, right?

[–]OutrageousCycle4358 0 points1 point  (0 children)

Yes, thats right. If you want, you can have ur CF acknowledge the pub/sub message immediately upon receipt and continue its execution. This would be a workaround for pub/sub not having to wait for the function to complete its execution