Comment 3 for bug 1716706

Revision history for this message
Matt Riedemann (mriedem) wrote :

melwitt made a good point that we'd still have to deal with avoiding a duplicate count of build_requests and instances regardless of the call from the API or conductor:

(10:21:33 AM) melwitt: mriedem: no, in the API where it is now. some other instances might be at the conductor stage and have both a build_request and an instance, right?
(10:21:46 AM) mriedem: oh yeah, good point
(10:21:51 AM) mriedem: separate concurrent request
(10:21:55 AM) mriedem: getting double counted
(10:21:55 AM) melwitt: yeah

What we could do is count the build_requests first and store a list of UUIDs, and when we count the instances, we exclude any that have a UUID in that list.