Merge "Fix inconsistent build task attempt logging"
This commit is contained in:
commit
de8d817f01
|
@ -498,12 +498,8 @@ class WorkerThread(threading.Thread):
|
||||||
for attempt in six.moves.range(self.conf.retries + 1):
|
for attempt in six.moves.range(self.conf.retries + 1):
|
||||||
if self.should_stop:
|
if self.should_stop:
|
||||||
break
|
break
|
||||||
if attempt > 0:
|
LOG.info("Attempt number: %s to run task: %s ",
|
||||||
LOG.info("Attempting to run task %s for the %s time",
|
attempt + 1, task.name)
|
||||||
task.name, attempt + 1)
|
|
||||||
else:
|
|
||||||
LOG.info("Attempting to run task %s for the first"
|
|
||||||
" time", task.name)
|
|
||||||
try:
|
try:
|
||||||
task.run()
|
task.run()
|
||||||
if task.success:
|
if task.success:
|
||||||
|
|
Loading…
Reference in New Issue