I created a gen 2 cloud function that takes 5mins to complete. Since the gen2 time out limit is 3600 and my requirements is way below that, i set the time out limit to 600 seconds.
However, the function fails to deploy with this error message “Default STARTUP TCP probe failed 1 time consecutively for container “worker” on port 8080. The instance was not started.”
When I dug deeper, the underlying cloud run has a start up probe which cannot be removed with a max timeout limit of 240 seconds. This seems to timeout before the function run is completed during the deployment and kind of contradictory to the purpose of gen 2 cloud function.
I looked at logs and documentation associated with this error, so please don’t provide me additional documentation links because this issue wasn’t covered.