Azure Data Factory Pipe line trigger is firing multiple times

KBD 40 Reputation points
2024-06-20T21:57:22.48+00:00

Hello:

New to Data Factory, but happy I have gotten a couple of things to work.

I have a pipeline that copies files from a blob "Inbox" to another folder in the data lake.

I expected four files. This works.

I have added an event trigger to the pipeline to fire the pipeline when the files come in. When I copy the files into the folder the pipe line kicks off four times. 'Cause there are four files. But when the multiple pipeline instances run there are lots of errors, 'cause the later runs are looking for files that have already been moved.

Is there a way to delay the trigger. Like if the trigger has fired do not test again for 10 minutes. Or is there a method to tell the pipeline NOT to run if an instance is already running.

Thanks for your attention to this matter.

KD

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,150 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nandan Hegde 31,351 Reputation points MVP
    2024-06-21T03:19:41.2466667+00:00

    Please refer the below blog for guidance:

    https://datasharkx.wordpress.com/2022/09/24/event-trigger-of-synapse-azure-data-factory-pipeline-on-arrival-of-nth-file-in-azure-blob-storage/

    there is something called concurrency:

    User's image

    that ensures only 1 instance of pipeline is running even though there are parallel triggers.

    Note : The above blog is for reference and you can update it as per your use case

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful