FIX: pending_jobs looks for the correct job names in the queue