question

SkorMMSC-3492 avatar image
0 Votes"
SkorMMSC-3492 asked MayankBargali-MSFT edited

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT edited

Hi @SkorMMSC-3492

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.