none
Queue trigger - execute one message at the time not working RRS feed

  • Question

  • Hi all,

    I have an azure queue trigger associated to a queue, and I want to ensure that the trigger only reads and executes one message at the time. So, when the message is executed (successfuly or not) it processes the next message.

    What is happening is that the queue executes one message, yet it begins to execute other message. My host.json:

    "queues": {
        "maxPollingInterval": 20000,
        "visibilityTimeout": "00:01:00",
        "batchSize": 1,
        "maxDequeueCount": 5,
        "newBatchThreshold": 1
      }

    Following instructions from MS link:

    https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue#trigger---configuration

    "If you want to avoid parallel execution for messages received on one queue, you can set batchSize to 1"

    So it would be expected to run only one message at the time (I'm using consumption plan).

    This is critical because I need to ensure that only one message it processed at the time.

    Is there any setting that I could change?

    Or is queue trigger not a good option to address this requirement?

    Thank you!

    Friday, March 23, 2018 10:24 AM

All replies