Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

pull subscription undelivered messages are not redirected to dead letter topic

Hi,
I have a cloud run job that pulls messages from pull subscription, process and write to bigquery and will acknowledge the message if writing to bigquery is successful.
This job is scheduled to run every 15 min.
While writing to bigquery if the dataset/table doesn't exist it will throw an exception and we are not acknowledging the message.
 We have configured dead letter topic and set the maximum delivery attempts to 5.
However, when there is a bigquery exception the message is not redirected to Dead Letter topic even after 5 attempts.
So for every run we are getting same exception until the Subscription message retention duration is reached ( 7 days).

When we checked the delivery attempt using received_message.delivery_attempt it is always 1.

0 2 226
2 REPLIES 2