View Source Oban.Notifiers.PG (Oban v2.18.0)
A PG (Process Groups) based notifier implementation that runs with Distributed Erlang.
Distributed Erlang
PG requires a functional Distributed Erlang cluster to broadcast between nodes. If your application isn't clustered, then you should consider an alternative notifier such as
Oban.Notifiers.Postgres
Usage
Specify the PG
notifier in your Oban configuration:
config :my_app, Oban,
notifier: Oban.Notifiers.PG,
...
By default, all Oban instances using the same prefix
option will receive notifications from
each other. You can use the namespace
option to separate instances that are in the same
cluster without changing the prefix:
config :my_app, Oban,
notifier: {Oban.Notifiers.PG, namespace: :custom_namespace}
...
The namespace may be any term.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.