def any_jobs_with_status(batch, job_queue, status):
    """
    Returns True if there are any jobs in the queue with the same status.
    """

    response = batch.list_jobs(
        jobQueue=job_queue, jobStatus=status, maxResults=1)
    return len(response['jobSummaryList']) > 0