Open ruthgrace opened 8 years ago
How often does this happen? Also, is there anything wrong in having this outsourced to the process manager, docker in this case?
I have no idea how frequently this occurs, but I would assume anytime Slack does a deploy. As for moving the restart to the process manager - systemd/supervisor/docker/etc - I don't have a problem with that. For an approach, I would suggest making it a config flag to enable/disable restart functionality, so as not to break other bots which might not be expecting the change.
From docker logs:
A potential solution is to loop the reconnect and retry every 5 seconds.