hedwig icon indicating copy to clipboard operation
hedwig copied to clipboard

Double supervision

Open michalmuskala opened this issue 8 years ago • 1 comments

There exists a subtle issue with Hedwig robot's because of how they are started.

The start_link function will start the robot under hedwig's supervisor. At the same time it's recommended to put the robot in the user's supervision tree. This causes the robot process to be supervised by two supervisors, which can lead to errors during code upgrade. There are no errors when the robot is restarted, only because it's running as a transient process under the hedwig supervisor.

The appropriate fix would be to not attach the process under the hedwig supervisor and leave the supervision to the user's application.

michalmuskala avatar Nov 19 '16 09:11 michalmuskala

Hey @michalmuskala, thanks for catching that. I'll work on fixing it.

scrogson avatar Nov 19 '16 15:11 scrogson