mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
bitbake: toaster: race condition for end-of-build
Force a sync point for end-of build event handler force the build's outcome status commit, to resolve a race condition with the build completion takedown. [YOCTO #14765] (Bitbake rev: f76c13536e19d2401365c0fc240ef8dbcb3ee7e8) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4769eaebb4
commit
c71a9c89e3
@@ -227,6 +227,12 @@ class ORMWrapper(object):
|
||||
build.completed_on = timezone.now()
|
||||
build.outcome = outcome
|
||||
build.save()
|
||||
|
||||
# We force a sync point here to force the outcome status commit,
|
||||
# which resolves a race condition with the build completion takedown
|
||||
transaction.set_autocommit(True)
|
||||
transaction.set_autocommit(False)
|
||||
|
||||
signal_runbuilds()
|
||||
|
||||
def update_target_set_license_manifest(self, target, license_manifest_path):
|
||||
|
||||
Reference in New Issue
Block a user