active jobs query should only include jobs that are not accepted