Skip to content

Commit 902590d

Browse files
authored
Merge pull request #9015 from readthedocs/humitos/build-reset-log
2 parents 1825f28 + 05582ce commit 902590d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

readthedocs/projects/tasks/builds.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,9 @@ def before_start(self, task_id, args, kwargs):
345345

346346
def _reset_build(self):
347347
# Reset build only if it has some commands already.
348-
if self.data.build.get('commands'):
349-
api_v2.build(self.data.build['id']).reset.post()
348+
if self.data.build.get("commands"):
349+
log.info("Reseting build.")
350+
api_v2.build(self.data.build["id"]).reset.post()
350351

351352
def on_failure(self, exc, task_id, args, kwargs, einfo):
352353
if not hasattr(self.data, 'build'):

0 commit comments

Comments
 (0)