Add SQL script to query execution status
Add checks for recent heartbeats before execution begins