Add sparse index for process_at, optimise SQL for it.
Fix brokenness when jobId is null.