derekkraan / horde

Horde is a distributed Supervisor and Registry backed by DeltaCrdt
MIT License
1.3k stars 102 forks source link

regular supervisor wrapping dynamic supervisor always propagate restarts #216

Closed stuartish closed 3 years ago

stuartish commented 3 years ago

connect #215

cc: @derekkraan

derekkraan commented 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?

stuartish commented 3 years ago

@derekkraan I added max_restarts and max_seconds to the options for the ProcessesSupervisor.

Also: