bitbake: toaster: make runbuilds loop
PATCH 1/1 bitbake: toaster: make runbuilds loop
From: Ed Bartosh <[email protected]>
This avoids having a loop in shell code and initializing heavy Django init machinery every second.
Ignore exceptions to prevent exiting the loop.
(Bitbake rev: e04da15556ca0936de652b8c085e4199e5551457)
--- .../lib/toaster/bldcontrol/management/commands/runbuilds.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py +10 -3
@@ -5,6 +5,7 @@ from bldcontrol.bbcontroller import getBuildEnvironmentController, ShellCmdExcep from bldcontrol.models import BuildRequest, BuildEnvironment, BRError, BRVariable import os import logging +import time logger = logging.getLogger("ToasterScheduler")
@@ -128,6 +129,12 @@ class Command(NoArgsCommand): def handle_noargs(self, **options): - self.cleanup() - self.archive() - self.schedule() + while True: + try: + self.cleanup() + self.archive() + self.schedule() + except: + pass + + time.sleep(1)
Signature · 12 lines
1.9.3 --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Apologies, I sent this prematurely, and it's a patch for jethro.
Please ignore.
Elliot
Quoted 66 lines · Elliot Smith
From: Ed Bartosh <[email protected]>
This avoids having a loop in shell code and initializing heavy Django init machinery every second.
Ignore exceptions to prevent exiting the loop.
(Bitbake rev:
e04da15556ca0936de652b8c085e4199e5551457)Signed-off-by Ed Bartosh <[email protected]>Signed-off-by brian avery <[email protected]>Signed-off-by Richard Purdie <[email protected]>Signed-off-by Ed Bartosh <[email protected]>Signed-off-by Elliot Smith <[email protected]>--- .../lib/toaster/bldcontrol/management/commands/runbuilds.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)diff --git
a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.pyb/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.pyindex 5243a50..48dc618 100644bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py +0
-0@@ -5,6 +5,7 @@ from bldcontrol.bbcontroller importgetBuildEnvironmentController, ShellCmdExcep
from bldcontrol.models import BuildRequest, BuildEnvironment, BRError,
BRVariable
import os
import loggingbitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py +10
-4+import time logger = logging.getLogger("ToasterScheduler")@@ -128,6 +129,12 @@ class Command(NoArgsCommand): def handle_noargs(self, **options): - self.cleanup() - self.archive() - self.schedule() + while True: + try: + self.cleanup() + self.archive() + self.schedule() + except: + pass + + time.sleep(1) --1.9.3
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Signature · 3 lines
Elliot Smith Software Engineer Intel Open Source Technology Centre