Hey, I’m using the Module child spec.
DynamicSupervisor.start_child(
Service.ServiceSupervisor,
{Service.Manager, [id: id, opts: opts]}
)
I think it’s the restart:
option. now I see in the docs
:transient
- the child process is restarted only if it terminates abnormally, i.e., with an exit reason other than:normal
,:shutdown
, or{:shutdown, term}
.
This seems to be what I was looking for, thanks for the hint with restart:
option!