Closed stuartish closed 3 years ago
Hmm, I think we're only halfway there with this PR. What we want is to be able to specify in child_spec/1
of Horde.DynamicSupervisor
the max_restarts and max_seconds, such that when this limit is reached for children added with Horde.DynamicSupervisor.add_child/3
, the Horde.DynamicSupervisor
dies.
With this change, the max_restarts and max_seconds is always 5/3. Thoughts?
@derekkraan I added max_restarts and max_seconds to the options for the ProcessesSupervisor.
Also:
strategy
from options passed to DynamicSupervisorImpl
connect #215
cc: @derekkraan