code: def end_run_group(group, session):
      
      from datetime import datetime
  
      group.end = datetime.now()
      group.status = 'completed'
      session.commit()
docs: End the run_group successfully.
  
      Args:
          group: The run_group we want to complete.
          session: The database transaction we will finish.