firebase / firebase-functions

Firebase SDK for Cloud Functions
https://firebase.google.com/docs/functions/
MIT License
1.01k stars 201 forks source link

Create pubsub function with dead letter #1322

Open Xaviou1003 opened 1 year ago

Xaviou1003 commented 1 year ago

Hello,

Not really a bug, it is more an improvement.

I search a way to configure a dead letter topic to the subscription that is automatically created when I deploy a new pubsub cloud function. Actually my workaround is to configure the dead letter after cloud function creation.

I saw this issue but there is not a fix.

[REQUIRED] Version info

node: 16.16.0

firebase-functions: 4.1.0

firebase-tools: 10.2.0

firebase-admin: 11.0.1

[REQUIRED] Test case

Implement a pubsub cloud function with firebase-functions. Deploy it with firebase cli. There is no way to define a dead letter.

[REQUIRED] Steps to reproduce

Implement a cloud function with a pubsub trigger functions .region('europe-west3') .runWith() .pubsub.topic('SignalEvent') .onPublish(...)

----> No option to configure a dead letter

[REQUIRED] Expected behavior

I want to configure dead letter parameters with a specific option.

[REQUIRED] Actual behavior

We can't configure dead letter topic and other dead letter parameters.

google-oss-bot commented 1 year ago

I found a few problems with this issue:

Xaviou1003 commented 1 year ago

I found a way to do what I want. This post and this article save me.

alexstroukov commented 2 days ago

@taeold @firebase-ops hey folks, is there anything you can tell us about where this feature is on your roadmap? or if youre planning to add support for configuring DLQs at all