ADF Tumbling Window Trigger: Dependency trigger not working as expected - azure-data-factory

I have created a tumbling window trigger for my Azure Data Factory Pipeline Test_Daily with recurrence as 24 hours. For this pipeline, i have added a dependency trigger lets say Test_Hourly (which runs every hour) with offset as 1.00:00:00(1 day).
Test_Daily pipeline is not getting triggered even though the dependency trigger has run successfully. For example, if the daily pipeline windowStartTime is 2020-09-20 00:00:00 and Test_Hourly with WindowStartTime 2020-09-21 00:00:00 has run successfully, then the daily pipeline should get triggered. However, this is not the case and Test_Daily gets triggered only when Test_Hourly has completed 2020-09-22 00:00:00(i.e. with 2 day offset).
Please let me know how to resolve this issue. Thanks.

I think it is your setting problem.
Your Test_Daily will start at 2020-09-20 00:00:00 and end at 2020-09-21 00:00:00.
Your Test_Hourly will wait for Test_Daily to complete and then delay 1.00:00:00(1 day) to complete at (2020-09-22 00:00:00).
Test_Hourly will Waiting on dependency.

yes, it is behaving as per the design with the applied settings.
Tumbling window trigger starts at window end time (For daily pipeline it is 2020-09-21 00:00:00) and it adds offset (1 day) to it and pipeline actually runs at 2020-09-22 00:00:00.
The same is replicated when I have used hourly and 5minute triggers. In this case, hourly is dependent on 5minute trigger with an offset of 5minutes and the delay of 5min after window time is seen in triggering time of hourly trigger.

Related

How to get Azure Data Factory Tumbling Window Trigger to work with Daylight Savings Time

I have some tumbling window triggers that are set to run at specific intervals 6 hours apart. They need to run at a designated time (think 5am and 11am, and so on) I have them set up so that they are self-dependent and dependent on a connection check trigger.
The problem arises when daylight savings comes around. Tumbling window triggers only work in UTC and when the clock changes in our time zone, the times they are triggered change by an hour (forward or back depending on the time of year). This causes data to be late to its destination and I am forced to manually deploy new triggers around daylight savings time.
I am wondering if there is a better way to work around daylight savings time as Tumbling Window Triggers do not support any time zone other than UTC and deploying new triggers every time is not an effective solution.
Not sure if I understand your requirement, it is actually different between 6 hours apart and setting scheduled triggers for 2 designated times which are 6 hours apart.
If you want to schedule the job for every 6 hours, the timezone should have no impact since the trigger should always trigger every 6 hours. This is the correct use case for tumbling window trigger.
If you want to schedule for designated times, you should go for scheduled trigger, which supports for timezones. For catering daylight saving time, you can simply select the timezone you want, ADF will auto adjust according to daylight saving time as specified in the UI.

Why does Data Factory Pipeline scheduled trigger sometimes gets offset?

I have some scheduled daily running pipelines.
Sometimes the scheduled trigger start time [Run start time] gets offset by few seconds [1s to 5s].
This is happening to all the pipelines having the same trigger.
Some of pipes use IR and some of them don't.
Trying to understand why it's happening.
Ex. Pipeline trigger offset by 1 second
Ashwin, yes this happens sometimes maybe due to a lag / latency between a trigger to start and actual start of a pipeline just like you clicking a button and time taken by the event behind that button to occur
But this does not hamper the execution of your pipeline

Azure Data Factory - tumbling window trigger will not start (stuck in the past)

I have pipelines that I need to run in sequence. The first is a "raw to bronze," which runs daily at 4am. Once that completes, I want my "bronze to silver" to kick off. Raw to bronze is running just as expected (tumbling window every 24 hours), and it successfully completes. Bronze to silver is configured as a tumbling window trigger with dependency on raw to bronze, but its window is stuck in November 2021. I have tried combinations of offset and window size (0 offset to fire immediately, and a +4 hour window size to run in the next 4 hours), but the problem remains. I have also deleted and re-created the trigger. Still the dependency window is November 2021.
raw to bronze configuration:
bronze to silver configuration:
And when I look at trigger runs, I see the window is stuck in the past:
Any ideas what I might be missing? All I am wanting is for the bronze to silver to kick off immediately after raw to bronze completes. Raw to bronze takes about an hour to run.
Thanks in advance for any help!
I repro’d in my lab, and it worked when I started the 2nd tumbling trigger (which is dependent on trigger 1) a minute before the dependency trigger (A_to_B).
Tumbling trigger A_to_B:
Tumbling trigger B_to_C:
Created this trigger to start 1 min earlier than the dependency trigger (A_to_B).
While creating it, it asks to re-align offset for dependency by the difference time as shown in the below snip.
Trigger runs:
First B_to_C trigger starts with status as waiting on dependency. A minute later A_to_B trigger starts running and when completes it changes the status to succeed. Now B_to_C trigger starts running and completes successfully.

trigger in azure data factory that runs daily basis only between 8:30 and 6:00 with 30 minutes interval

I need to create a trigger on daily basis between 8:30 and 6:00 with 30 minutes interval in azure data factory. can any of u please help me with steps to create?
Please follow my configuration as below:
It would be triggered every day at the specific time.
One little issue: It will be triggered at 18:30 because the limitation of configuration.You could just set a if-condition activity before all of your stuffs to judge if it is 18:30,then just leave the pipeline.

java quartz cron expression with hh:mm start/end time and every X minutes

I'm trying to create a cron expression that will trigger a job according to the time I get, and every X minutes. both start/end time and the minutes intervals are parametrs I get from the user. for example:
start time: 09:15
end time: 19:35
minutes interval: 15
I want the job to start at 09:15 and to be triggred every 15 minutes, so the last job will actually be at 19:30 (because it can't be after 19:35).
my problem is that I dont know how to include the minutes of the start/end time..
How is it possible to create this kind of expression?
Thank's In advance.
I don't think that it is possible to meet your requirements in a single cron expression, as each time component (hours/minutes/seconds etc) is handled independently.
Perhaps the simplest approach would be to have a trigger for running every 15 minutes, and enable/disable this trigger at 09:15 and 19:35 (e.g. using additional triggers).
Alternatively you could have a trigger fire every 15 minutes, and procedural logic attached to this trigger which checks if the current time is between 09:15 and 19:35 before doing any work.
You don't need CRON, simple trigger will do. Check out Lesson 5: SimpleTrigger. This should work for your situation:
trigger = newTrigger()
.startAt(nineFifteen)
.endAt(nineteenThirtyFive)
.withSchedule(simpleSchedule().withIntervalInMinutes(15))
.forJob(someJob)
.build();