Hi all,
New to Oban, and while setting it up, I run into some trivial issues, that I didn’t found to be mentioned in the docs…
What’s the proper way of starting up Oban?
What I do right now is to:
- configure it properly in config/config.exs:
config :my_app, Oban,
engine: Oban.Engines.Basic,
queues: [default: 10, events: 10],
repo: MyApp.Repo,
testing: :inline # optional
- start it from my application, so
children = [
...,
{Oban, Application.get_env(:my_app, Oban)},
]
The bullet point 2) was actually the missing bit of information. AFAIK, it’s not explicitly mentioned in the docs, only in case you want to run multiple Oban instances.
How do you start Oban? Is this the proper way, given that I don’t have any special needs?