pending_jobs realizes if a job has been already queued