Closed FabienHenon closed 6 years ago
If your process is not restarted at all then it's not Swarm
's fault. If it is restarted but not being registered in Swarm then it is expected behaviour right now - see: https://github.com/bitwalker/swarm/issues/6
I forgot to mention that because I start my Scheduler
at application startup Swarm
is postponing the creation of the process and the process is created from Swarm
, not from my supervision tree
Any idea on how to attach the process to my scheduler instead of swarm's? So that my process can be restarted if crashed?
An implementation of Swarm with support for external supervision is forthcoming. Since this issue is a duplicate of that one, I'm going to close this, but keep an eye out for that soon!
Is there any way to restart a crashed process?
I tried to set
restart: :permanent
but my process is not restarted when I kill it with:Process.exit(pid, :kill)
.My process is created like this:
The supervisor calling
start_link
is defined like this: