summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-09-16 17:22:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-21 21:58:06 +0100
commite9a12e5d37390632ac6f265f9513106f00ccdbb9 (patch)
tree12d4c7e78b70617aabf7d4294652c9d41a2d9cff /bitbake/lib/toaster/orm
parent2478a6f2084e0217983dafb6862b1ec4fd4f6049 (diff)
downloadpoky-e9a12e5d37390632ac6f265f9513106f00ccdbb9.tar.gz
bitbake: toaster: notify runbuilds when build status changes
Called signal_runbuilds API when build is scheduled, cancelled or finished to notify runbuilds process about builds status change. [YOCTO #8918] (Bitbake rev: fe08f0fa4b328908e73695ebbceca87bc86a49f9) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r--bitbake/lib/toaster/orm/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 38d014a7f8..a7de57c256 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -377,6 +377,8 @@ class Project(models.Model):
377 except ProjectVariable.DoesNotExist: 377 except ProjectVariable.DoesNotExist:
378 pass 378 pass
379 br.save() 379 br.save()
380 signal_runbuilds()
381
380 except Exception: 382 except Exception:
381 # revert the build request creation since we're not done cleanly 383 # revert the build request creation since we're not done cleanly
382 br.delete() 384 br.delete()