Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 5999b294b3c3c9bb4e1e4418a4f149d446352586
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Fri May 29 17:39:38 2015 +0200
note about BuildsLogic.get_build_task_queue
---------------------------------------------------------------
.../coprs_frontend/coprs/logic/builds_logic.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/logic/builds_logic.py
b/frontend/coprs_frontend/coprs/logic/builds_logic.py
index df5f73c..3bd32a7 100644
--- a/frontend/coprs_frontend/coprs/logic/builds_logic.py
+++ b/frontend/coprs_frontend/coprs/logic/builds_logic.py
@@ -63,6 +63,10 @@ class BuildsLogic(object):
models.BuildChroot.status ==
helpers.StatusEnum("starting"),
and_(
models.BuildChroot.status.in_([
+ # Bug 1206562 - Cannot delete Copr because it incorrectly
thinks
+ # there are unfinished builds. Solution: `failed` but
unfinished
+ # (ended_on is null) builds should be rescheduled.
+ # todo: we need to be sure that correct `failed` set is set
together wtih `ended_on`
helpers.StatusEnum("running"),
helpers.StatusEnum("failed")]),
models.Build.started_on < int(time.time() - 1.1 *
MAX_BUILD_TIMEOUT),
models.Build.ended_on.is_(None)