From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2987CE00D2C; Tue, 13 Sep 2016 06:21:30 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id F079DE00D19 for ; Tue, 13 Sep 2016 06:21:26 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 13 Sep 2016 06:21:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,328,1470726000"; d="scan'208";a="1055322741" Received: from linux.intel.com ([10.54.29.200]) by fmsmga002.fm.intel.com with ESMTP; 13 Sep 2016 06:21:26 -0700 Received: from vmed.fi.intel.com (vmed.fi.intel.com [10.237.72.68]) by linux.intel.com (Postfix) with ESMTP id 57C996A4080 for ; Tue, 13 Sep 2016 06:21:02 -0700 (PDT) From: Ed Bartosh To: toaster@yoctoproject.org Date: Tue, 13 Sep 2016 16:20:57 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 Subject: [PATCH 0/7] Fix for #8918: Change the way we handle queued builds X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2016 13:21:30 -0000 Hi, This patchset introduced a bit lighter way of handling builds. Instead of polling database every second we process builds only when runbuilds receives SIGUSR1. The signal is sent when build is either scheduled, canceled or finished. A little bit of code cleanup is also included into this patchset. Test instructions: - Create multiple builds in UI. Check if they'll be built sequentially - Create multiple builds in UI, cancel one. Check if the next one starts building. - Repeat first two test cases when command line build is run. Only one UI build should be run in parallel with command line build. - Test any other combinations of running and cancelling builds to make sure there are no regressions. The following changes since commit 75927f8f6809b9b4696fc438b240bc7a3db561e2: toaster: don't kill all runserver processes (2016-09-05 15:32:25 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/toaster/nopoll-queued-builds-8918 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/toaster/nopoll-queued-builds-8918 Ed Bartosh (7): toaster: implement signal_runbuilds function toaster: notify runbuilds when build status changes runbuilds: process builds on SIGUSR1 runbuilds: process builds on start runbuilds: code cleanup - whitespaces, long lines runbuilds: code cleanup - remove unused imports toaster: unlock BuildEnvirnoment when build is done bitbake/lib/bb/ui/buildinfohelper.py | 12 ++++-- .../bldcontrol/management/commands/runbuilds.py | 49 ++++++++++------------ bitbake/lib/toaster/orm/models.py | 10 ++++- 3 files changed, 41 insertions(+), 30 deletions(-) -- Regards, Ed