Azure Queue Storage- set TTL for the -poison queue (Java)

Anonymous
2021-06-17T13:04:04.237+00:00

The data pipeline uses FunctionApp (implemented in JAVA) that is triggered if a new message is sent into a Azure Queue Storage. The message is moved automatically to the -poison queue if the FunctionApp is failed. The time-to-live of created messages is 7 days by default. Is it possible to increase the value? We would like to set TTL=-1 for messages in the -poison queue. How can we achieve it? Do you know any workaround for that?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,306 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 68,656 Reputation points
    2021-06-18T03:41:20.83+00:00

    Hi anonymous user

    Welcome to Microsoft Q&A! Thanks for posting the question.

    Unfortunately, currently you cannot set the TTL for the -poison queue using any configuration. I have passed your feedback to the team and you can also pass your feedback/product improvement here.

    As the workaround only for .NET Azure function to change the TTL value for now you would have to register your own QueueProcessor and you need to follow this as described here. You would create your own startup class, and register your own IQueueProcessorFactory as we register the default one here. You can also refer to the example in our tests here.

    0 comments No comments

0 additional answers

Sort by: Most helpful