generic-poky/bitbake
Michael Wood 9dcb9cb2cc bitbake: toaster: bldcontrol models Add a cancelling state the BuildRequest
To accurately reflect the state of a build request we also need a
cancelling state. This is set when we've started a build and then for
whatever reason cancel it, cancelling is not instantaneous so we have
this state to indicate that a cancel is in progress.

Also add a state transition guard. As the state of a BuildRequest can
currently be modified by three processes; Toastergui,
Runbuilds/bldcontrol and the buildinofhelper we cannot say for sure
which process will be running at the time of cancellation so in order to
avoid one of these processes making an incorrect transition only allow
transitions of state to increase.

e.g. CREATED -> QUEUED -> INPROGRESS
And to ignore such requested changes such as
INPROGRESS -> CREATED

(Bitbake rev: 449598c8e6be75bd0c9d59e7bdf859d1d6f83858)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-04-06 23:10:29 +01:00
..
bin bitbake: toaster: update conf/local.conf 2016-04-06 23:10:28 +01:00
contrib bitbake: newbb.vim: remove PR 2014-08-19 20:41:26 +01:00
doc bitbake: bitbake-user-manual: include/require checks current directory 2016-03-23 21:55:38 +00:00
lib bitbake: toaster: bldcontrol models Add a cancelling state the BuildRequest 2016-04-06 23:10:29 +01:00
AUTHORS misc: Update the email address to a working one. 2011-01-04 14:36:54 +00:00
COPYING bitbake: Sync with upstream. 2007-01-08 23:53:01 +00:00
ChangeLog *: Fix typo in documentation 2010-08-04 16:12:39 +01:00
HEADER bitbake: Sync with upstream. 2007-01-08 23:53:01 +00:00
LICENSE bitbake: toaster: adding frameworks for the Simple UI 2013-10-18 11:13:49 +01:00
toaster-requirements.txt bitbake: toaster: rework checking of Django version 2015-12-14 23:13:08 +00:00