-
Notifications
You must be signed in to change notification settings - Fork 217
Open
Labels
Description
Related issues
none
[REQUIRED] Version info
node: v22.14.0
firebase-functions: 6.4.0
firebase-tools: 14.17.0
firebase-admin: 12.6.0
[REQUIRED] Test case
I tryed the source code below.
module.exports.onwrite = onDocumentWritten(
{
document: 'segments/{id}',
timeoutSeconds: 3600,
},
async event => {
console.log('test')
}
)
[REQUIRED] Steps to reproduce
When I try to deploy a Firestore trigger function with timeoutSeconds
set to 3600
, I get a deployment error.
[REQUIRED] Expected behavior
According to the official documentation, it should be possible to deploy successfully with a value of 3600.
Documentation: https://firebase.google.com/docs/functions/quotas#time_limits:~:text=60%20minutes%20for%20HTTP%20functions.%0A60%20minutes%20for%20event%2Ddriven%20functions.
https://cloud.google.com/functions/quotas#time_limits
[REQUIRED] Actual behavior
It occurs the error below.
⚠ functions: Request to https://cloudfunctions.googleapis.com/v2/projects/[project id]/locations/[region]/functions?functionId=firestore-segment-onwrite had HTTP Error: 400, The timeout for functions with an event trigger cannot exceed 540 seconds.
Were you able to successfully deploy your functions?
No