Default is 1 minute, could be extended up to 9 minutes.
gcloud functions deploy FUNCTION_NAME --runtime python37 --timeout 540 --trigger-http --project PROJECT_ID
--timeout=TIMEOUT The function execution timeout, e.g. 30s for 30 seconds. Defaults to original value for existing function or 60 seconds for new functions. Cannot be more than 540s. See $ gcloud topic datetimes for information on duration formats.
References: