Query is blocked for [min]
What is this alert?
If a query that has started to execute is blocked by another query for the specified number of minutes, Command Center raises an alert.
Queries that are queued, but have not yet started, do not trigger this alert.
The alert contains the Query ID, database name and user, and run-time details.
Need alert type specific JSON example to write this out
What to do
Use the Query Monitor to locate the blocked query and the query that blocks it.
Determine whether the blocking query is executing properly:
- Is the query also blocked? - Is the query blocking a large number of other queries? - Is the query creating excessive spill files? - Is the query running in the correct resource group or resource queue? - Is the query running longer than usual? - Does the query have excessive data or CPU skew?
- Determine whether you should allow the query to complete, or cancel the query so that the blocked queries can resume.