public Job complete(int id) {
        for(Job job : queue){
            if(job.getId() == id){
                job.complete();
                return job;
            }
        }
        return null;
    }