Tumbling Window Trigger in Azure Data Factory - triggers

How can I parameterize the tumbling window trigger in ADF to run between a specific time(9Am-10AM) daily.
Is it possible to achieve it through the MyWindowStart and MyWindowEnd parameters?
Regards,
Sandeep

https://i.stack.imgur.com/UlEpY.png
ADFv2-A schedule trigger like mentioned in attachment would do a similar thing
ADFv1-Add offset in pipeline and datasets related to the same pipeline
"scheduler": {
"frequency": "Day",
"interval": 1,
"offset": "09:30:00"
}

Related

How to get track execution duration for each activity in datafactory

*There is pipeline pl_main and had for-each activity.
For each activity calls another child pipeline there had three activities(lookup,notebook,lookup).
Look up activity calls insert/update for log table.
Question is how can i get total execution duration for-each activity.So that i can get it throughput for records.
My moto is to pass total duration and log into delta lake table
*
One possible solution to get the execution duration of ForEach activity is to use variables and assign the current time before and after the execution of the ForEach activity. The following is a detailed demonstration of how you can do this.
I have a pipeline which has Get Metadata activity, ForEach activity (takes items from the childitems of get metadata activity) and inside foreach I have Copy Data activity.
To this pipeline, I have added Set Variable activity before and after ForEach activity as shown below.
In get_start_time activity I have created start_time variable (String), and in get_end_time activity I have created end_time variable (String).
I have given start_time value as #utcnow() which returns the current timestamp value as a string. I have done the same for end_time as well.
When I debug the pipeline, it succeeds and returns the required output. The following is the image of each activity run.
The value returned for start_time:
The value returned for end_time:
Since you want to log the ForEach activity duration to delta lake table, you can make use of these variables start_time and end_time. When inserting into the table, you can use DATEDIFF() function (returns difference between two timestamps in seconds). Refer to this Microsoft documentation to understand more about DATEDIFF function.

Azure Boards : Completed Work for Epic/Feature

I need to get the total completed work on Epic/Feature .
Epic->Feature->UserStory->Tasks are linked with parent/child hierarchy.
How to use sum of completed work on an EPIC or a Feature, considering all the tasks that are child to them have the completed work in it.
Query Editor doesn't have an option to do sum function.
You can add Custom Rollup on the backlog level:
The result:
Check this document: Display rollup progress or totals in Azure Boards
Here you can find additional suggestions to rollup work: Rollup of work and other fields

Specifying schedule (start date, finish date) for tasks in CMMI process Azure DevOps boards

I have set up a project in Azure DevOps, selecting the CMMI process as setting (mainly to be able to schedule the start and end dates of each work item).
However, for tasks, I am not able to select neither "Start Date" nor "Finish Date" - both appear with a lock button. I am able, however, to set up both dates for higher level work items such as Features and Epics.
I have tried with both Stakeholder and Basic access, does not work for either of them.
Is there any way on how to configure this? I have not issue with converting from CMMI to another type of project.
Thank you.
Start Date and Finish Date fields are calculated if you create a project plan in Microsoft Project and then synchronize that plan with tasks that are stored in Azure Boards. These fields may not appear on the work item form, but they are calculated for those backlog items and tasks that are linked to backlog items. The values are read-only in backlog items and tasks, so you can not modify them.
If you want to set "Start Date" and "Finish Date" for a task, you could customize (need to use inherited process) two Date/Time fields, and add them in a group.
Go to inherited process, select Task work item, and hide the "Start Date" and "Finish Date" field:
Create two customized Date/Time fields:
Now you would be able to set Date/Time in Task work item:
The default Start and Finish date fields in Task Work-Item type can be edited in Backlog view and then using 3 dots (...) option for one or multiple tasks. It opens up a pop-up to select the fields to edit, choose the Start and Finish date fields and set the desired date(s).
click on 3 dots from Backlog view:
select the Start and End date fields in the Pop-up window, choose the desired dates and click save button:
The updated date fields can be seen by adding the respective columns in the backlog view:

Wiql azure devops query to track work items in state "Blocked" during some period

I need to track items being in a particular state during a particular period of time.
There is wiql:
SELECT
[System.Id],
[System.WorkItemType],
[System.Title],
[System.AssignedTo],
[System.State],
[Custom.Hurdle],
[Microsoft.VSTS.Common.StateChangeDate],
[System.IterationPath]
FROM workitems
WHERE
[System.WorkItemType] = 'User Story'
AND [System.AreaPath] UNDER 'AREA'
AND [Microsoft.VSTS.Common.StateChangeDate] >= ITERATION_START_DATE
AND [System.State] EVER 'Blocked'
AND [System.IterationPath] = 'ITERATION_NAME'
It returns items ever being in state "Blocked" and where in the particular iteration. There are few issues with that:
1. item could be in blocked few months ago, unblocked month ago and put in particular iteration, which is not relevant
2. item could be changed to state "Blocked" and ther removed from a particular iteration.
Is there any way in Azure Devops to retrieve work items that were in some state during a particular timeframe?
Is there any way in Azure Devops to retrieve work items that were in
some state during a particular timeframe?
For now there's no out-of-box feature to support this scenario. What you want is similar to this example:
State Was Ever Closed
And Closed Date > 7/1/2015
And Closed Date <= 7/21/2015
However the existing fields areAccepted Date, Activated Date, Changed Date, Called Date, Created Date, Resolved Date, Closed Date..., we don't have the 'Blocked Date' for your scenario.
So I'm afraid what you want is not supported yet cause Azure Devops Service doesn't support Blocked Date for your custom state Blocked.
You could add your request for this feature on our UserVoice site, this is our main forum for product suggestions. Thank you for helping us build a better Azure DevOps.
Hope it helps to resolve your puzzle :)

SSRS parameter grouping

I'm created 2 reports in SSRS 2008. I now plan on merging the reports into one and allow users to select report type via a drop down option.
The reports bring back the same data but are grouped differently.
Here lies the problem, I can't figure out how to alter the grouping depending on the report type.
Basically I want to do this
when Parameters!Report_Type.Value = "D" group by Fields!txiii_commodity.Value else no group
I've tried iif, and switch but never get the desired results.
Could someone please help.
Thanks in advance
Chris
I did this with a very simple example. Sample dataset:
Create a report with one group:
Grouped on expression:
=IIf(Parameters!Report_Type.Value = "D", Fields!txiii_commodity.Value, "Ungrouped")
Also used this to display the Group column in the report.
Results: