reset pending_task status to WAITING if task is done