DeepSpeech icon indicating copy to clipboard operation
DeepSpeech copied to clipboard

Handle control-C cleanly in feeding threads

Open reuben opened this issue 4 years ago • 3 comments

Currently you have to hold Control-C for several seconds until all the threads are killed.

reuben avatar Apr 17 '20 16:04 reuben

This is basically a nuisance: when you kill a training process it spams the terminal. It'd be nice to fix, but from a cursory glance it requires some hand-holding of Python's multiprocessing module, so I don't think it's enough "bang for buck" for my time on 0.8/1.0. Contributions welcome.

reuben avatar Jul 02 '20 08:07 reuben

I had the same thought when I saw it, years ago I had to deal with a similar problem for a multi-threaded renderer and it was annoying to deal with.

kdavis-mozilla avatar Jul 02 '20 09:07 kdavis-mozilla

How about using Control-\ instead?

tilmankamp avatar Jul 02 '20 09:07 tilmankamp