update Tasks stat only when the request is successful.