cortex-lab / Rigbox

A MATLAB toolbox for running behavioral neuroscience experiments and managing data
GNU General Public License v3.0
33 stars 16 forks source link

Stop services on error #300

Open k1o0 opened 4 years ago

k1o0 commented 4 years ago

Is your feature request related to a problem? Please describe. When there is an error the services should be stopped by expServer.

Describe the solution you'd like Upon an error the cleanup method is run, however the cleanup event is not triggered. Perhaps it should be so that running services are stopped:

https://github.com/cortex-lab/Rigbox/blob/cd888f0ae2653ac78651243b22d566ab67a6fb60/%2Bexp/SignalsExp.m#L401-L419

Additionally it could be useful to include an input arg to services stop methods so that exception UDPs can be sent.