def get_runs_for_order_and_machine(session, ts, order_id, machine_id):
    """Collect all the runs for a particular order/machine combo."""
    runs = session.query(ts.Run) \
        .filter(ts.Run.machine_id == machine_id) \
        .filter(ts.Run.order_id == order_id) \
        .all()
    return runs