queueazureservicebuswebjob

ServiceBusTrigger using ReceiveDelete on a continous webjob


Is it possible to use a ServiceBusTrigger along with ReceiveDelete set for the ReceiveMode on a continous webjob? I have a message that takes longer than 10 minutes to process, so instead of using a peek I would like to just remove it from the queue as soon as the job picks up the message.


Solution

  • You've got two options here:

    1. Complete the message yourself
    2. Use lock renewal API to extend the lock for more than 5 minutes using maxAutoRenewDuration of host.json.