refactor moving the job when all tasks are dispatched.