def end_run_group(group, session):
    """
    End the run_group successfully.

    Args:
        group: The run_group we want to complete.
        session: The database transaction we will finish.
    """
    from datetime import datetime

    group.end = datetime.now()
    group.status = 'completed'
    session.commit()
End the run_group successfully.

    Args:
        group: The run_group we want to complete.
        session: The database transaction we will finish.