mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
bitbake: toaster: make runbuilds loop
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) (Bitbake rev: 0e9d8d63ddb35d181d4e470585d1e4a4c646cd00) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b9ad87b18f
commit
2fb7ee2628
@@ -5,6 +5,7 @@ from bldcontrol.bbcontroller import getBuildEnvironmentController, ShellCmdExcep
|
|||||||
from bldcontrol.models import BuildRequest, BuildEnvironment, BRError, BRVariable
|
from bldcontrol.models import BuildRequest, BuildEnvironment, BRError, BRVariable
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
import time
|
||||||
|
|
||||||
logger = logging.getLogger("ToasterScheduler")
|
logger = logging.getLogger("ToasterScheduler")
|
||||||
|
|
||||||
@@ -128,6 +129,12 @@ class Command(NoArgsCommand):
|
|||||||
|
|
||||||
|
|
||||||
def handle_noargs(self, **options):
|
def handle_noargs(self, **options):
|
||||||
self.cleanup()
|
while True:
|
||||||
self.archive()
|
try:
|
||||||
self.schedule()
|
self.cleanup()
|
||||||
|
self.archive()
|
||||||
|
self.schedule()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
time.sleep(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user