diff --git a/readthedocs/projects/tasks/builds.py b/readthedocs/projects/tasks/builds.py index 573d162a732..c401d92f5fb 100644 --- a/readthedocs/projects/tasks/builds.py +++ b/readthedocs/projects/tasks/builds.py @@ -345,8 +345,9 @@ def before_start(self, task_id, args, kwargs): def _reset_build(self): # Reset build only if it has some commands already. - if self.data.build.get('commands'): - api_v2.build(self.data.build['id']).reset.post() + if self.data.build.get("commands"): + log.info("Reseting build.") + api_v2.build(self.data.build["id"]).reset.post() def on_failure(self, exc, task_id, args, kwargs, einfo): if not hasattr(self.data, 'build'):