multiple after the fact events

Prasad, Rakesh 221 Reputation points
2021-06-26T03:28:31.78+00:00

hi,

i have a blobtrigger which is listening on one particular container. 3rd party process writes file in this container and i want my trigger to do some processing on basis of these incoming file.

logic inside a trigger works fine. but i can see these logs getting printed long after all the files has been processed.

while monitoring function from "Application Insight - live metrics", i can see logs like this even after couple of hrs.

Blob 'trigger/******************.json' will be skipped for function 'BlobTrigger' because this blob with ETag '"0x8D93848EA14CA40"' has already been processed. PollId: 'f5726ca3-3608-4527-9b9d-8d23ebb10061'. Source: 'ContainerScan'.

I am sure no new files are been written in incoming blob, last file written was couple of hrs back.

I can also see 1 server instance (for blob listener) still running.

I am afraid because of these false +ve, i may be paying for unnecessary compute. How to fix this?, and why is this happening?

I am using python 3.9 and latest dependencies.
109370-requirements.txt

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,678 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,639 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Pramod Valavala 20,611 Reputation points Microsoft Employee
    2021-06-29T10:00:11.453+00:00

    @Prasad, Rakesh The blob trigger polls the storage account for new blobs and keeps track of ones that it processed. This is expected and there is indeed a constant load of polling on your storage account.

    The alternative is to leverage events on your storage account and use the Event Grid trigger instead. This alternate is mentioned in the docs as well, including other benefits as well.

    1 person found this answer helpful.
    0 comments No comments

  2. Jona 475 Reputation points
    2023-12-10T01:38:58.79+00:00

    The same happens to me. I can't even upload new blobs, since they are skipped.

    I commented also in this thread

    https://github.com/Azure/azure-sdk-for-net/issues/35273

    0 comments No comments

  3. Jona 475 Reputation points
    2024-04-04T04:44:16.9933333+00:00

    The alternative mentioned by @Pramod Valavala about using Event Grid Trigger did work for me.

    Thanks

    0 comments No comments