Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process manager router option not working #517

Open
suzdalnitski opened this issue Dec 9, 2022 · 0 comments
Open

Process manager router option not working #517

suzdalnitski opened this issue Dec 9, 2022 · 0 comments

Comments

@suzdalnitski
Copy link

Hi, the docs mention that it is possible to customize the router used by a process manager:

defmodule TransferMoneyProcessManager do
  use Commanded.ProcessManagers.ProcessManager,
    application: ExampleApp,
    name: "TransferMoneyProcessManager",
    router: BankRouter,
    event_timeout: :timer.minutes(10)
end

However, when specifying a router, I'm getting an error: MyApp.NotificationProcessManager specifies invalid options: [:router]

Indeed, it seems that router is not a valid option in ProcessManager.parse_config!:

  @handler_opts [
    :application,
    :name,
    :consistency,
    :start_from,
    :subscribe_to,
    :subscription_opts,
    :event_timeout,
    :idle_timeout
  ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant