refactored Task and WorkingQueue and added batch Size to client request resource