diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-22 11:17:25 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-22 11:18:08 +0300 |
commit | d4900d85f7a5d791f89821713d02d3dd19361044 (patch) | |
tree | 4e7a1cc241d108c89779df9ec62f144a62937c17 /monitor | |
parent | f5ed92e8dbdfd751276ebb054669ca649b28e43c (diff) |
Add support for tenant-associated service notifications
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/monitor.cxx | 8 |
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 |