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]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]
]
]