polaris.tasks.ocean.realistic_global.dynamic_adjustment.task.RealisticGlobalDynamicAdjustment.configure
- RealisticGlobalDynamicAdjustment.configure()[source]
Rebuild the stages if a user’s setup-time config changed the schedule.
Nothing is rebuilt when the schedule is unchanged, which is the usual case and the only one a downstream consumer of these shared steps sees. A schedule that has changed cannot simply be re-requested: the shared steps are keyed by work directory, so a stage whose name survived the change would come back carrying its old run duration and time step. The old ones are therefore dropped first, which
polaris.Task.remove_step()carries through to the component once no task is left using them.Only the steps under this mesh’s
dynamic_adjustmentdirectory are dropped and added back. Doing this to the whole task would evict theinitchain from the component too, and a consumer holding those step instances would be left with stale ones.