FAQ | This is a LIVE service | Changelog

Set timeout of CloudRun requests

Description

The timeout_seconds sets the acknowledge deadline of the Pub/Sub subscription but not the request timeout of Cloud Run service. Default Cloud Run timeout is 5 minutes and therefore the maximum duration of a function is ucam-faas is 5 minutes.

Set the Cloud Run timeout to the same as the acknowledge deadline of the Pub/Sub subscription.

Further details

Lab Allocator needs to run functions for longer than 5 minutes.

Acceptance criteria

  • ucam-faas supports function durations equal to the maximum acknowledge deadline of Pub/Sub subs (600 seconds).

Links/references

https://cloud.google.com/pubsub/docs/subscription-properties#ack_deadline https://cloud.google.com/run/docs/configuring/request-timeout