Merge "Fix job book deletion issue in taskflow" into stable/xena

This commit is contained in:
Zuul 2024-01-23 16:03:31 +00:00 committed by Gerrit Code Review
commit c0b6fabf4a

View File

@ -148,6 +148,7 @@ class DynamicLoggingConductor(impl_blocking.BlockingConductor):
if (not CONF.task_flow.jobboard_save_logbook and
job.state == states.COMPLETE):
LOG.debug("Job %s is complete. Cleaning up job logbook.", job.name)
if job.book:
try:
self._persistence.get_connection().destroy_logbook(
job.book.uuid)