You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce RunParams data type to bundle several run building params
These params are (almost) always used together, so this helps to reduce
verbosity and the number of separate args that have to be passed around.
We also slightly simplify when args are provided. Now all these params
are provided to the RunBuilder, and none extra are needed when the
RunBuilder is turned into the Run. Previously, two were passed to the
RunBuilder and one more passed to the Run (though actually finalising
the RunBuidler also needed the third param anyway).
However, the real motivation for all this is to improve restoring
snapshots of merging runs. At the moment, deserialising a merging run
requires us to supply all three of these params from the surrounding
context. This is ok in the context of levels, but becomes awkward for
merging runs embedded in a merging tree.
The obvious solution is to serialise this set of parameters with the
merging run, and then they're directly available to use when
reconstructing the merge during snapshot restore.
Changes to serialisation are not in this patch, but the next.
0 commit comments