ObanDoctor.Check.Config.NoReindexer (oban_doctor v0.2.2)

Copy Markdown View Source

Checks for Oban instances without the Reindexer plugin configured.

The Reindexer plugin periodically rebuilds indexes on the Oban jobs table to prevent index bloat and maintain query performance over time.

Without periodic reindexing, indexes can become bloated, especially in high-throughput systems with frequent job insertions and completions.

How to fix

Add the Reindexer plugin to your Oban configuration:

config :my_app, Oban,
  plugins: [
    Oban.Plugins.Pruner,
    Oban.Plugins.Reindexer
  ],
  queues: [default: 10]

See Oban Reindexer plugin.

Configuration

In .oban_doctor.exs:

checks: [
  no_reindexer: [
    # Disable the check entirely
    enabled: false,

    # Or exclude specific Oban instances from this check
    excluded_instances: [MyApp.SecondaryOban]
  ]
]