type

RunnerOptions

Explicit maintenance admission and bounded lease/operation controls.

Fields

PropertyTypeDescription
AllowMaintenanceboolAdmit pending traffic-sensitive live steps after writers drain, or complete semantic shadow replay.
AllowUnboundedboolExplicitly permit a zero wait or operation timeout.
LeaseWaittime.DurationMaximum wait for the single-migrator fenced lease.
LeaseDurationtime.DurationRenewable bounded lease duration used for crash recovery.
OperationTimeouttime.DurationOverall migration/index-build execution bound.

How it works

Zero values select bounded defaults unless AllowUnbounded explicitly admits an unbounded wait or operation; lease expiry remains bounded.

Full signature

type RunnerOptions struct { AllowMaintenance bool AllowUnbounded bool LeaseWait time.Duration LeaseDuration time.Duration OperationTimeout time.Duration }

Source adapters/mongodb/migration_lease.go:29