sorentwo / oban

💎 Robust job processing in Elixir, backed by modern PostgreSQL and SQLite3
https://getoban.pro
Apache License 2.0
3.18k stars 297 forks source link

Config for Oban.Met? Not seen this before from AppSignal #1063

Closed ghenry closed 3 months ago

ghenry commented 3 months ago

Exception: RuntimeError - Untriaged

Occurred in Oban.Web.DashboardLive#mount on resi_switch (prod) in live_view
on April 03, 2024 at 21:11 (UTC)

MESSAGE

** (RuntimeError) no config registered for [Oban, Oban.Met] instance

SUMMARY

File: | lib/oban/web/dashboard_live.ex:171 in Oban.Web.DashboardLive.await_init/3 -- | -- d89169dae4d4d8  
ghenry commented 3 months ago

I must have missed these two plugins when I first set Oban Web up https://getoban.pro/docs/web/2.9.6/installation.html#configuration

ghenry commented 3 months ago

Actually, I was reading old docs. My config is correct as per:

https://getoban.pro/docs/web/2.10.3/installation.html#configuration

Will see if this was a one-off and keep this closed until then.

sorentwo commented 3 months ago

There have been intermittent reports of this issue, which seems to be a race condition in Oban Met's auto-start mechanism. It's possible to add Oban.Met as an Oban plugin and disable auto_start to work around it (which is documented in the next Met release):

config :oban_met, auto_start: false
ghenry commented 3 months ago

Thanks. Will do if it comes up again.

ghenry commented 3 months ago

Yeah, seeing lots of this now, so doing as you suggest:

2024-04-04T16:26:43.628 app[d89169dae4d4d8] lhr [info] ** (RuntimeError) no config registered for [Oban, Oban.Met] instance