Sleep the thread for 5 seconds if the amount of processed rows is reached
Allow mainthread on queue dump