I have one webjob on azure, with QueueTrigger. Long work (more than 30 minutes)
public async static Task ProcessQueueMessageAsync([QueueTrigger(QUEUENAME)] string iJobId) {
My problem is how to delete the message in the queue after starting. The message becomes invisible until a period of time appears (30 seconds by default). Much less than my duration. Therefore, I believe that I need to delete the message at the beginning of the trigger method. I find how to do this when you execute a loop using the GetMessage() method, rather than starting it. But how to do this with a trigger, because I don't have a message object to run .DeleteMessage() ?
source share