Since this second by second data is important to my Grafana/InfuxDB, I can't afford to have it stay hung until I happen to notice it.
So I have a script that runs every hour to restart the plugin:
- Code: Select all
plugin = indigo.server.getPlugin("com.ssi.indigoplugin.TED5000")
if plugin.isEnabled():
plugin.restart()
Problem with that is that it takes it quite awhile to restart, so I am losing data for maybe a minute every hour, but also for some reason when that operation is happening, other unrelated Indigo triggers fail to work, enough that I see the effects maybe 2-3 times a week. I am not sure why that would be, but there is a definite correlation. I am on a 2018 Mac Mini, so I don't think it is a resource issue.
I am wondering if there is a way to tell if a plugin has hung and issue a restart it only then? Ideally I would just run this checker every 1 or 5 minutes, if there is such a thing.
Here is the TED 5000 Plugin:
viewforum.php?f=143