InProgress
Migration is in progress with current step information.
This progress event is emitted when a migration step is about to be executed. It provides detailed information about the current step, including its position in the sequence and descriptive message.
This event is emitted BEFORE the step's execute() method is called, allowing UI updates to show what operation is about to begin.
Usage:
Use this event to update progress bars, status messages, and provide real-time feedback about which operation is currently executing.
is MigrationProgress.InProgress -> {
val progressPercent = (progress.currentStep * 100) / progress.totalSteps
progressBar.progress = progressPercent
statusText.text = "Step ${progress.currentStep}/${progress.totalSteps}: ${progress.message}"
logger.i("Executing: ${progress.step.description}")
}Parameters
The 1-based index of the step currently being executed (1, 2, 3, ...)
The MigrationStep instance being executed, containing description and logic
The total number of steps in this migration sequence
Optional descriptive message about the current step (usually step.description)