Oban.Plugins.Repeater (Oban v2.10.1) View Source

Repeatedly send inserted messages to all registered producers to simulate polling.

This plugin is only necessary if you're running Oban in an environment where Postgres notifications don't work, notably one of:

  • Using a database connection pooler in transaction mode, i.e. pg_bouncer.
  • Integration testing within the Ecto sandbox, i.e. developing Oban plugins

Options

  • :interval — the number of milliseconds between notifications. The default is 1_000ms.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Types

Specs

option() ::
  {:conf, Oban.Config.t()}
  | {:name, GenServer.name()}
  | {:interval, pos_integer()}

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.