-- Capture this output with the release record before running the Job.
SELECT SemanticVersion FROM dt.Versions ORDER BY SemanticVersion;
GO

SELECT TaskHub, RuntimeStatus, COUNT_BIG(*) AS Instances
FROM dt.Instances
GROUP BY TaskHub, RuntimeStatus
ORDER BY TaskHub, RuntimeStatus;
GO

SELECT TaskHub, COUNT_BIG(*) AS PendingEvents
FROM dt.NewEvents
GROUP BY TaskHub
ORDER BY TaskHub;
