<div dir="ltr">Apologies, I sent this prematurely, and it's a patch for jethro.<div><br></div><div>Please ignore.</div><div><br></div><div>Elliot</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 January 2016 at 14:18, Elliot Smith <span dir="ltr"><<a href="mailto:elliot.smith@intel.com" target="_blank">elliot.smith@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Ed Bartosh <<a href="mailto:ed.bartosh@linux.intel.com">ed.bartosh@linux.intel.com</a>><br>
<br>
This avoids having a loop in shell code and initializing<br>
heavy Django init machinery every second.<br>
<br>
Ignore exceptions to prevent exiting the loop.<br>
<br>
(Bitbake rev: e04da15556ca0936de652b8c085e4199e5551457)<br>
<br>
Signed-off-by: Ed Bartosh <<a href="mailto:ed.bartosh@linux.intel.com">ed.bartosh@linux.intel.com</a>><br>
Signed-off-by: brian avery <<a href="mailto:avery.brian@gmail.com">avery.brian@gmail.com</a>><br>
Signed-off-by: Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>><br>
Signed-off-by: Ed Bartosh <<a href="mailto:eduard.bartosh@intel.com">eduard.bartosh@intel.com</a>><br>
Signed-off-by: Elliot Smith <<a href="mailto:elliot.smith@intel.com">elliot.smith@intel.com</a>><br>
---<br>
.../lib/toaster/bldcontrol/management/commands/runbuilds.py | 13 ++++++++++---<br>
1 file changed, 10 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py<br>
index 5243a50..48dc618 100644<br>
--- a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py<br>
+++ b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py<br>
@@ -5,6 +5,7 @@ from bldcontrol.bbcontroller import getBuildEnvironmentController, ShellCmdExcep<br>
from bldcontrol.models import BuildRequest, BuildEnvironment, BRError, BRVariable<br>
import os<br>
import logging<br>
+import time<br>
<br>
logger = logging.getLogger("ToasterScheduler")<br>
<br>
@@ -128,6 +129,12 @@ class Command(NoArgsCommand):<br>
<br>
<br>
def handle_noargs(self, **options):<br>
- self.cleanup()<br>
- self.archive()<br>
- self.schedule()<br>
+ while True:<br>
+ try:<br>
+ self.cleanup()<br>
+ self.archive()<br>
+ self.schedule()<br>
+ except:<br>
+ pass<br>
+<br>
+ time.sleep(1)<br>
--<br>
1.9.3<br>
<br>
---------------------------------------------------------------------<br>
Intel Corporation (UK) Limited<br>
Registered No. 1134945 (England)<br>
Registered Office: Pipers Way, Swindon SN3 1RJ<br>
VAT No: 860 2173 47<br>
<br>
This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Elliot Smith<br>Software Engineer<br>Intel Open Source Technology Centre</div></div></div>
</div>