admin管理员组文章数量:1122832
I recently updated my operating system, and now I'm facing this error when running my server. Previously, everything was working fine. Here's the error message:
(Mix) Could not start application main: Main.Application.start(:normal, []) returned an error: shutdown: failed to start child: Oban (EXIT) shutdown: failed to start child: {:via, Registry, {Oban.Registry, {Oban, Oban.Nursery}}} (EXIT) shutdown: failed to start child: {Oban.Registry, {Oban, Foreman}} (EXIT) an exception was raised: ** (ArgumentError) expected :strategy option to be given (elixir 1.12.2) lib/dynamic_supervisor.ex:516: DynamicSupervisor.init/1
Here is the configuration in my application.ex
file:
{Oban, Application.fetch_env!(:main, Oban)}
And this is my configuration in the config.exs
file:
config :main, Oban, repo: Data.Repo, queues: [ events: 10, campaigns: 5, mindbody_import: 5, at_risk_chaflow: 1, auto_close_conversations: 1 ], plugins: [ {Oban.Plugins.Cron, crontab: [{"59 11 * * SUN", Main.WeeklyReports}]} ]
The error seems related to DynamicSupervisor
expecting a :strategy
option, but I am unsure how to resolve it.
Environment Details:
Elixir version: 1.12.2
Oban version: 2.18.3
MacOS Sequoia: 15.1.1
What could have gone wrong here? How do I fix this issue and get the server running again?
Any help or guidance is greatly appreciated!
I was just trying to update the OS, and this happened
I recently updated my operating system, and now I'm facing this error when running my server. Previously, everything was working fine. Here's the error message:
(Mix) Could not start application main: Main.Application.start(:normal, []) returned an error: shutdown: failed to start child: Oban (EXIT) shutdown: failed to start child: {:via, Registry, {Oban.Registry, {Oban, Oban.Nursery}}} (EXIT) shutdown: failed to start child: {Oban.Registry, {Oban, Foreman}} (EXIT) an exception was raised: ** (ArgumentError) expected :strategy option to be given (elixir 1.12.2) lib/dynamic_supervisor.ex:516: DynamicSupervisor.init/1
Here is the configuration in my application.ex
file:
{Oban, Application.fetch_env!(:main, Oban)}
And this is my configuration in the config.exs
file:
config :main, Oban, repo: Data.Repo, queues: [ events: 10, campaigns: 5, mindbody_import: 5, at_risk_chaflow: 1, auto_close_conversations: 1 ], plugins: [ {Oban.Plugins.Cron, crontab: [{"59 11 * * SUN", Main.WeeklyReports}]} ]
The error seems related to DynamicSupervisor
expecting a :strategy
option, but I am unsure how to resolve it.
Environment Details:
Elixir version: 1.12.2
Oban version: 2.18.3
MacOS Sequoia: 15.1.1
What could have gone wrong here? How do I fix this issue and get the server running again?
Any help or guidance is greatly appreciated!
I was just trying to update the OS, and this happened
Share Improve this question asked Nov 22, 2024 at 7:45 ch wajeehch wajeeh 32 bronze badges1 Answer
Reset to default 0You need to upgrade to Elixir 1.14+ to use Oban 1.28.x as stated on the requirements page: https://github.com/oban-bg/oban?tab=readme-ov-file#requirements
Oban requires:
- Elixir 1.14+
- Erlang 24+
本文标签: elixirOban Error After OS Update quotexpected strategy option to be givenStack Overflow
版权声明:本文标题:elixir - Oban Error After OS Update: "expected :strategy option to be given - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736305383a1932571.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论