06-23-2023 10:12 AM
Hello All,
I have a use case where I have to schedule my pipeline dynamically based on entries from an input table? What’s the best way to implement this? For Example: If I have a pipeline loadSalesTable, I have to look to my input scheduling table to decide what day and time to trigger the pipeline and accordingly I have to schedule it.
I don’t think we have any straightforward approach using Scheduled or Triggered task, looking for a work around. Thanks in advance.
Solved! Go to Solution.
06-26-2023 11:34 PM
As @bojanvelevski mentioned you can use the Metadata snap pack to achieve it,
Solution Approach:
Set values below in the pipeline parameter:
source_proj: orgName/ProjectPath
target_proj: orgName/ProjectPath
taskToUpdate: Name of the task
Sample pipeline:
UpdateTaskInfo.slp (3.7 KB)
Let us know if this worked.
Cheers 🙂
06-26-2023 07:59 AM
No, let me be more precise. Our client has given a schedule to run what pipeline on which day and time (nnot a fixed schedule). It’s maintained in a RDBMS table. So, to trigger a pipeline, the process has to look into the scheduling table and trigger the pipleline on a particular day and time accordingly.
Example: There is a record in scheduling table,
PipeName,Date,Time
LoadSalesTable,06-27-2023,05:00 PM CST
LoadEmployeeTable,06-27-2023,04:00 PM CST
So, my question is how to automate the process to trigger the pipeline ‘LoadSalesTable’ on 06-27-2023,05:00 PM CST ?
(PS: The schedule for ‘LoadSalesTable’ might change in the future and the process should accommodate without manual intervention).