Launch a pipeline when a file arrives in a specific folder
Hello everyone,
is there any way how snaplogic can detect that a new file arrives in a folder and launch a pipeline? I thought Trigger tasks can do that but I don't know how.
Thank in advance for your help.
You can fulfill the business need with a pipeline having a file poller snap with the settings polling interval = 30 seconds and polling timeout = -1 minutes and the option "Only Output On Change" ticked in.
Then create a scheduled task for this pipeline with a scheduled start every 1 minutes and make sure that has the option "Do not start a new execution if one is already active" ticked in.
This will generate a constant running pipeline which polls the directory for new files every 30 seconds and process anything that pops up.
You should also create a step in your pipeline that moves the original file to an archive location or even delete the source file after successful processing of the sub pipeline which will deal with the processing.