I have a Storage Account where the creation of a blob triggers an Event Grid subscription to move a BlobCreated
event to a queue. After that a Function App is triggered on the queue, which will fail on corrupt documents thus moving the queue item to a poison queue.
Right now it seems to move them using the default 7 day TTL, but for the poison queue I would like a TTL for forever. Is there any way to change the TTL for the poison queue in the trigger function?
What I've tried so far:
- Looking if the Event Grid subscription had any options to set the TTL for the queue
- Looking for possible options in the
host.json
file (in Func App) - Using reflection to change the
ExpirationTime
in theCloudQueueMessage
input desperately hoping it might be used to create the poison queue item