stanfordnmbl / opencap-core

Main OpenCap processing pipeline
Apache License 2.0
144 stars 112 forks source link

stop machine when pose detection is timing out #134

Closed antoinefalisse closed 7 months ago

antoinefalisse commented 7 months ago

@suhlrich my machine (and maybe others) is sometimes failing. The symptom is mmpose not starting and pose detection timing out. Problem is that it keeps running, and will keep failing trials. With this PR, I bring up the error message and kill the worker in app.py if it is the particular error message. not sure it is the best way, but it works as expected. The if statement is based on the error message text, which is not fantastic but it works with minimal change.