CORE-5791: changed the query to look for incomplete jobs to query the status field rather than the end_date field