the problem is that when in Supervisor you try this:
children = [
{
DynamicSupervisor,
name: SomeName,
strategy: :one_for_one
},
{
DynamicSupervisor,
name: AnotherName,
strategy: :one_for_one
}
]
You end up receiving this:
** (Mix) Could not start application eap:
PocAbilityProvider.start(:normal, []) returned an error: bad child specification, more than one child specification has the id: DynamicSupervisor. If using maps as child specifications, make sure the :id keys are unique. If using a module or {module, arg} as child, use Supervisor.child_spec/2 to change the :id, for example:
children = [ Supervisor.child_spec({MyWorker, arg}, id: :my_worker_1), Supervisor.child_spec({MyWorker, arg}, id: :my_worker_2) ]
I tried to pull off something like
OPTION1
children = [
{
DynamicSupervisor,
name: SomeName,
strategy: :one_for_one,
id: :unique_id
},
{
DynamicSupervisor,
name: AnotherName,
strategy: :one_for_one,
id: :even_more_unique_id
}
]
OPTION2
children = [
{
DynamicSupervisor,
[
[
name: SomeName,
strategy: :one_for_one
],
id: :unique_id
]
},
{
DynamicSupervisor,
[
[
name: AnotherName,
strategy: :one_for_one
],
id: :even_more_unique_id
]
}
]
But it still returns same error. Is it possible to start two DynamicSupervisors under one supervisor?