Oban bringing app down on Prod with error (expected :repo to implement Ecto.Repo, got: MyApp.Repo) #1006
Labels
area:oss
Related to Oban OSS
closed:invalid
This doens't seem right
kind:bug
Something isn't working
Application is encountering an error in prod environment during startup, leading to a crash. The error message suggests a problem with the initialization of the Oban application. Oban is working fine in dev environment
On futher investigating we found out that Oban uses
__info__(:attributes)
to check if repo implements Ecto.Repo behaviour and on prod when we ranMyApp.Repo.info(:attributes)
it return empty list causing above error.Not sure why
__info__(:attributes)
is returning empty list of attributes on prod environment.Any help here will be appreciated
Environment
elixir --version
): Elixir 1.15.7 & Erlang/OTP 26The text was updated successfully, but these errors were encountered: