threadpool getting multiple jobs each time