[refactoring] split queue.py in 3 modules
To prepare https://github.com/huggingface/dataset-viewer/issues/2279
[refactoring] split queue.py in 3 modules: To prepare https://github.com/huggingface/dataset-viewer/issues/2279