0

I am trying to get the predicted results from the Recommendations AI and store those predictions back into the big query. After fetching a few rows, the Cloud Function gives timeout exception. Is there any way I can increase the timeout of Cloud Function? or if I can push the predicted results directly to the Big Query without any interaction of Cloud Function?

Sakshi Gatyan
  • 1,903
  • 7
  • 13
ZAIN Ali
  • 95
  • 9

1 Answers1

0

As mentioned in the Answer:

The maximum run time of 540 seconds applies to all Cloud Functions, no matter how they're triggered. If you want to run something longer you will have to either chop it into multiple parts, or run it on a different platform, such as Compute Engine or App Engine.

Default timeout time can be changed here.

Follow this : select function >test function > edit > timeout

If you want to directly load your data to the BigQuery, you can follow this blog.

you can also look for the documentation on export prediction data to BigQuery as this is not the recommended method you can go for Remote Config personalization.

For more information related to BigQuery ML support model you can refer to the answer and blog.

Divyani Yadav
  • 1,030
  • 4
  • 9