Cloud Function taking too long to send a message to PubSub

44 views
Skip to first unread message

Anurag Phadke

unread,
Nov 1, 2018, 8:21:02 AM11/1/18
to Google Cloud Pub/Sub Discussions
Hello,
I am using Google Cloud Function, gets invoked via HTTP, runs and once the function is complete, sends a message to PubSub.


The puppeteer code runs fine, however, there is a 70-90 second delay for the message to arrive in PubSub. Any idea why this might be happening? 

This might not be a PubSub issue either, I couldn't find group for GCF discussions.

-anurag

Jorge A (Google Cloud Support)

unread,
Nov 1, 2018, 5:20:08 PM11/1/18
to Google Cloud Pub/Sub Discussions
Is there anything that stands out in the logs that matches the delay time? With the information available, the only recommendation would be to follow the best practices. The details on the logs might give you a lot more info about what might be taking so long.

Anurag Phadke

unread,
Nov 1, 2018, 5:57:02 PM11/1/18
to Jorge A (Google Cloud Support), Google Cloud Pub/Sub Discussions
Jorge,
Nothing in the logs that can co-relate back to why the delay might be happening.

From the best-practices section, I moved the browser invocation to instance-wide scope, however the delayed publish to pubsub problem still persists.

Are there any examples of how to chain Cloud Functions aka passing output from function-1 to function-2? or in this case, send output of a background function to PubSub?



On Thu, Nov 1, 2018 1:58 PM, 'Jorge A (Google Cloud Support)' via Google Cloud Pub/Sub Discussions cloud-pubs...@googlegroups.com wrote:
Is there anything that stands out in the logs that matches the delay time? With the information available, the only recommendation would be to follow the best practices. The details on the logs might give you a lot more info about what might be taking so long.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/f0367897-6ffa-4582-b831-5109879e5359%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages