Description
[REQUIRED] Environment info
firebase-tools: 11.21.0
Platform: macOS
[REQUIRED] Test case
exports.customeventhandler = onCustomEventPublished(
{
eventType: "firebase.extensions.storage-resize-images.v1.complete",
retry: true,
},
(e) => {
console.log(JSON.stringify(e));
});
[REQUIRED] Steps to reproduce
firebase deploy --only functions
[REQUIRED] Expected behavior
Should deploy function with retry policy
[REQUIRED] Actual behavior
Shows a warning Cannot set a retry policy on Cloud Function
and does not set the retry policy.
Warning is coming from here:
firebase-tools/src/gcp/cloudfunctionsv2.ts
Line 528 in a2b9389
EventTrigger
has retryPolicy
field, so it should be set when retry
option is specified.
https://cloud.google.com/functions/docs/reference/rest/v2/projects.locations.functions#eventtrigger