Bio-Balance-Detector / bbd-p08-body-monitor

BBD Body Monitor is a single channel data acquisition system (DAS) to provide a bio-potential reading in the 0.25Hz - 125kHz frequency range. The main focus of the prototype is to use machine learning to detect different physical and mental states.
http://www.biobalancedetector.com
MIT License
5 stars 0 forks source link

Data writer queue gets discarded on acquisition error #16

Open andrasfuchs opened 1 year ago

andrasfuchs commented 1 year ago

We have a data writer queue and it sometimes happens that more than one writers are waiting in the queue due to high disk usage and low disk write speed.

If we can stop the data acquisition normally, then all the queue items get done properly, but if an error happens and we reset the device (and the session) the writer queue gets discarded. This is not ideal, because these queued writers have valuable data that needs to be written to disk.