saikoneru1997 / Azure_DataFactory

0 stars 0 forks source link

how to skip pipeline run on holidays #59

Closed saikoneru1997 closed 4 hours ago

saikoneru1997 commented 4 hours ago

Here we need to use predefined calender table in azure sql db

Then use lookup activity to get current date status like below

select status from table where date_column=current_date and pipeline_name='soandso'

here we can get status='working' or status='Holiday'

after lookup use if else activity use equals('Working',lookup.activityoutput.status) - functions

if true then execute the pipeline else not execute the pipeline

to this pipeline we can apply schedule trigger which runs every day