Cloud function continuously showing timeout

303 views
Skip to first unread message

Tushar Wagh

unread,
Oct 9, 2021, 12:30:39 PM10/9/21
to Google Cloud Developers
I am implementing tensorflow in google cloud function. It was running fine earlier. Since last 9 hours it continuously showing timeout. It getting stuck at line,
result = tensorflow_hub_model(img_array)
RAM used is 4GB.
Please help.

Aref Amiri (Cloud Platform Support)

unread,
Oct 12, 2021, 4:16:04 PM10/12/21
to Google Cloud Developers
I'd suggest reviewing this public documentation as it explains the cause of timeouts and make sure you follow the best practices. If the issue persists, you might want to consider creating a Public Issue Tracker for further investigation.

Tushar Wagh

unread,
Oct 19, 2021, 8:06:52 AM10/19/21
to Google Cloud Developers
I have realized that CPU is getting allocated only 1.3 GHz and I should get 4.8 GHz on selecting 4 GB RAM. That might be reason for time-out. It is getting time-out at the line of script where heavy computation is required.
Refer  to screenshot.
cf_error.jfif

Elliott (Google Cloud Platform Support)

unread,
Oct 19, 2021, 12:17:50 PM10/19/21
to Google Cloud Developers

Hello Tushar,


Thank you for your question. I understand that you are using Tensorflow in a Cloud Function and there is a timeout. As Google Groups is meant for General discussions about Google products, I would suggest that if you believe that there is an issue with cloud functions, to report it using Google Issue Tracker. If you find that this is unique to your project,  I would recommend for you to contact support using the regular channel.


I do understand that this may be frustrating but the channels I provided would be best to help you.

Reply all
Reply to author
Forward
0 new messages