Copied from a project I work on, this seems to get a list of all jobs in the delayed queue.