Closed pablopen closed 2 months ago
The Postgres peer doesn't send that notification, and only one peer type should be running at a time.
Did you change the peer recently or do you have a mixture of instances running somehow?
You put me in the clue to solve this, thank you.
Turns out we run 2 apps in an umbrella, one that we use with the Cron plugin configured as:
config :app_a, Oban,
peer: Oban.Peers.Global,
and another instance that we just use to launch jobs manually:
config :app_b, Oban,
plugins: [],
queues: []
So I solved it adding to :app_b
peer: false
This is how I got mixed peers running at the same time
For future reference, setting plugins: false
will also disable leadership.
I'm looking into disabling on an empty list as well.
Precheck
Environment
elixir --version
)Erlang/OTP 26 [erts-14.1.1] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]
Elixir 1.16.2 (compiled with Erlang/OTP 26)
Current Behavior
I'm getting this warning message constantly in my logs:
After some investigation, I think this piece of code present in oban/peers/global.ex is missing in oban/peers/postgres.ex:
Because its not there, it triggers oban/peers/postgres.ex:143
Expected Behavior
Not getting a warning message