AdaptiveBackfill.BatchOperationOptions (adaptive_backfill v0.2.1)

View Source

Struct that holds config for batch operations, used for pagination or chunked behaviour.

Summary

Types

t()

@type t() :: %AdaptiveBackfill.BatchOperationOptions{
  batch_size: pos_integer() | nil,
  checkpoint: Checkpoint.t() | nil,
  delay_between_batches: non_neg_integer() | nil,
  handle_batch: (any() -> {:ok, any()} | {:error, any()} | :done),
  health_checkers: [AdaptiveBackfill.Types.health_checker()],
  initial_state: any(),
  mode: AdaptiveBackfill.Types.operation_mode(),
  on_complete: (any() -> any()),
  on_error: (any(), any() -> any()),
  on_success: (any() -> any()),
  telemetry_prefix: [atom()] | nil,
  timeout: non_neg_integer() | nil
}

Functions

new(initial_state, handle_batch, on_complete, mode, health_checkers, opts \\ [])