add task to pending.