Updates a run if it exists, otherwise it’s created from scratch.
If a run with the same rid already exists, it will be updated. Otherwise, a new run will be created.