AdaptiveBackfill.SingleOperationOptions (adaptive_backfill v0.2.1)

View Source

Struct that holds single operation options, this is for the user to control and not batch.

Summary

Types

health_check()

@type health_check() :: (-> :ok | {:halt, any()})

t()

@type t() :: %AdaptiveBackfill.SingleOperationOptions{
  handle: (health_check() ->
             {:ok, any()} | {:error, any()} | {:halt, any()} | :done),
  health_checkers: [AdaptiveBackfill.Types.health_checker()],
  mode: AdaptiveBackfill.Types.operation_mode(),
  on_complete: (any() -> any()),
  on_error: (any() -> any()),
  on_success: (any() -> any()),
  telemetry_prefix: [atom()] | nil,
  timeout: non_neg_integer() | nil
}

Functions

new(handle, on_complete, mode, health_checkers, opts \\ [])