keep tasks in task map until the whole job done