Merge "Improve logging around manual/scheduled image builds"

This commit is contained in:
Zuul 2024-03-11 10:43:02 +00:00 committed by Gerrit Code Review
commit 17c57eea85
1 changed files with 4 additions and 0 deletions

View File

@ -681,6 +681,7 @@ class BuildWorker(BaseWorker):
''' '''
Check every DIB image to see if it has aged out and needs rebuilt. Check every DIB image to see if it has aged out and needs rebuilt.
''' '''
self.log.debug('Checking for scheduled image updates')
for diskimage in self._config.diskimages.values(): for diskimage in self._config.diskimages.values():
# Check if we've been told to shutdown # Check if we've been told to shutdown
# or if ZK connection is suspended # or if ZK connection is suspended
@ -690,6 +691,7 @@ class BuildWorker(BaseWorker):
if not self._checkConfigRecent(): if not self._checkConfigRecent():
# If our config isn't up to date then return and start # If our config isn't up to date then return and start
# over with a new config load. # over with a new config load.
self.log.debug('Config changed')
return return
self._checkImageForScheduledImageUpdates(diskimage) self._checkImageForScheduledImageUpdates(diskimage)
except Exception: except Exception:
@ -799,6 +801,7 @@ class BuildWorker(BaseWorker):
''' '''
Query ZooKeeper for any manual image build requests. Query ZooKeeper for any manual image build requests.
''' '''
self.log.debug('Checking for manual image build requests')
for diskimage in self._config.diskimages.values(): for diskimage in self._config.diskimages.values():
# Check if we've been told to shutdown # Check if we've been told to shutdown
# or if ZK connection is suspended # or if ZK connection is suspended
@ -808,6 +811,7 @@ class BuildWorker(BaseWorker):
if not self._checkConfigRecent(): if not self._checkConfigRecent():
# If our config isn't up to date then return and start # If our config isn't up to date then return and start
# over with a new config load. # over with a new config load.
self.log.debug('Config changed')
return return
self._checkImageForManualBuildRequest(diskimage) self._checkImageForManualBuildRequest(diskimage)
except Exception: except Exception: