aboutsummaryrefslogtreecommitdiff
path: root/monitor/monitor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/monitor.cxx')
-rw-r--r--monitor/monitor.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/monitor/monitor.cxx b/monitor/monitor.cxx
index 6d6bb99..77f387b 100644
--- a/monitor/monitor.cxx
+++ b/monitor/monitor.cxx
@@ -675,7 +675,8 @@ namespace brep
const auto& bid (bquery::build::id);
- bquery bq ((equal<package_build> (bid.package, id.package) &&
+ bquery bq ((bquery::build::state != "queued" &&
+ equal<package_build> (bid.package, id.package) &&
bid.target == bquery::_ref (id.target) &&
bid.target_config_name ==
bquery::_ref (id.target_config_name) &&
@@ -864,8 +865,13 @@ namespace brep
b = move (pbs.begin ()->build);
}
else
+ {
b = db.find<build> (id);
+ if (b->state == build_state::queued)
+ b = nullptr;
+ }
+
// Note that we consider a build as delayed if it is not
// completed in the expected timeframe. So even if the build
// task have been issued recently we may still consider the