[go: up one dir, main page]

Skip to content

Add operation runner

Problem

BBO operations need a migration orchestrator to manage the execution of individual migrations. Currently there's no mechanism to:

  1. Find or create the next batch job for a migration
  2. Determine batch boundaries using appropriate batching strategies
  3. Handle migration lifecycle events (finish, failure, optimization)
  4. Delegate job execution to the appropriate wrapper

Solution

Implement a OperationOrchestrator that orchestrates the execution of a single migration, similar to the existing BBM pattern.

The runner should:

  • Find or create the next batch job for a migration

  • Determine batch boundaries using batching strategies

  • Delegate job execution to BatchedMigrationWrapper

  • Handle migration lifecycle (finish, failure, optimization)

  • Add Runner

Edited by Max Orefice