cubicweb-worker #2194533 worker code are hard to test [resolved]

The threading logic in entrangled with actual task execution logic. Using it in test is complicated

prioritynormal
typeenhancement
done in1.0.0
load1.000
load left0.000
closed by#ee91864a2e9c CWWorker: split threading and running logic (closes ##2194533)