singleton icon indicating copy to clipboard operation
singleton copied to clipboard

Global, supervised singleton processes for Elixir

Results 6 singleton issues
Sort by recently updated
recently updated
newest added

Is there a reason why a user would want this running as its own OTP application? Also, running it as a separate application was always breaking my application as described...

hacktoberfest-accepted

It is possible that this line https://github.com/arjan/singleton/blob/ae3d0dd970954626beb90fddf8c83b6840cb6920/lib/singleton/manager.ex#L18 is the one that make managers process not to be restarted, when normal shutdown of process used in singleton? when scaling down one...

Hi there, This library seems like what I'm looking for, but I'm seeing similar behaviour to what is described in the announcement post on Elixir Forums >> https://elixirforum.com/t/singleton-global-supervised-singleton-processes-for-elixir/2175/3 > When...

https://github.com/arjan/singleton/blob/master/lib/singleton/manager.ex#L58 ```elixir defp restart(state) do start_result = GenServer.start_link(state.mod, state.args, name: {:global, state.name}) pid = case start_result do {:ok, pid} -> pid {:error, {:already_started, pid}} -> state.on_conflict && state.on_conflict.() pid end...

so a potential `max_restarts` option is useful fix #15

Because it is set to be used as a `DynamicSupervisor` regular option, but as stated in https://github.com/elixir-lang/elixir/issues/13675, the `max_restarts` option only works as an init option