def get_task_runs(task, task_runs_object):

    """
    Return a list of all associated task runs for a task
    """

    output_list = []
    task_id = task['id']
    for tr in task_runs_object:
        if task_id == tr['task_id']:
            output_list.append(tr)
    return output_list