Open anselor opened 4 months ago
Just commenting here to say that I've opened a PR to this PR with some more changes - let me know if you want me to switch targets to the main repo. PR: https://github.com/anselor/ankermake-m5-protocol/pull/4
pycryptodomex
, flask
, flask-sock
to the latest version + adding python-dotenv
to dependenciesankersrv.js
worker_start()
, which restarts the api state) on pppp failure (see notes below)/video
if it isn't running, allowing webrtc access via go2rtc (see #162)/api/ankerctl/status
endpoint, displays a JSON of every services state and the app_api_version
dictWith this version, pppp should not crash (at least not as often). I've noticed before it would stop working after 2-3 hours of uptime, (but that could also be my really old xeon failing). Instead of crashing it will "flicker" for lack of better words, where sending gcode will sometimes work, and the videostream will have corrupted B/P-frames that only get worse over time. Reloading services are to no avail. Restarting the entire application every 2 hours does circumvent this as far as I can tell.
I tried getting the webserver to run with a different WSGI server, but had no luck. I only tested gevent
or eventlet
. I wanted to try gunicorn but from my understanding it would require some refactoring to how the cfg is loaded so I stopped trying.
Might be missing a few issues as well that I haven't encountered myself.
Aggregation of many PRs
Integrates the following PRs
123
136
138
145
148
150
155
157
Supersedes #139