Use RPOPLPUSH to walk the queue in #queued. This will not have memory issues when dealing with a large queue.
Merge pull request #921 from jjulian/safe_job_queued

Use RPOPLPUSH to walk the queue in #queued