Open anaskhandevops opened 7 months ago
I can't really help with code writing but I do think it's worth asking, why do those subscriptions go dark? Is it something you expect in your app, or do messages just quit being delivered, or what?
Hello, thank you for your response. I would like to delete a message backlog that has accumulated to over 200K messages. To achieve this, I need to identify and remove old, inactive subscriptions among the 130 pubsub subscriptions I have.
Hi there, I am currently facing an issue while attempting to discover dead subscriptions in Google Cloud Pub/Sub using Node.js scripts.
Background: I recently set up an alert system on a Pub/Sub topic to send a notification to Slack if the backlog ever exceeds 50 messages. However, I encountered a situation where the message backlog reached over 200K messages. To address this, I am now trying to create a script that can identify and clean up dead Pub/Sub subscriptions.
Issue: While I am not very familiar with Node.js, I attempted to create a scripts using the @google-cloud/pubsub library. Unfortunately, neither of these scripts seems to be working as expected.
script:
another:
I'd greatly appreciate your help in resolving the issues with these scripts. Thanks a bunch for your time and assistance.
Best regards,