async def METHOD_NAME(max_pages=30, batch_size=10):
    all_statuses = collections.defaultdict(lambda: 0)
    # There's no way to get all the unfinished jobs from the GitHub Actions API,
    # here this assumes that it returns the most recent data first (and it's all
    # paginated via the API), the heuristic here is that once the lambda has
    # seen a certain number of completed jobs with no pending/queued/in progress
    # jobs in between, it's probably safe to assume we've seen all the
    # unfinished jobs. The stuff here is just making sure it checks a certain
    # number of completed jobs before moving on (page size * max_pages_past)
    max_pages_past = 10
    pages_past = max_pages_past
    i = 1
    should_quit = False
    while not should_quit and i < max_pages:
        batch = await get_page_batch(i, batch_size)
        i += batch_size
        for page in batch:
            new_statuses = collections.defaultdict(lambda: 0)
            for run in page["workflow_runs"]:
                all_statuses[run["status"]] += 1
                new_statuses[run["status"]] += 1
            if not page_in_progress(new_statuses):
                pages_past -= 1
            else:
                pages_past = max_pages_past
            if pages_past == 0:
                should_quit = True
            print(new_statuses)
    return {"last_updated": datetime.datetime.now().timestamp(), **all_statuses}