Ticket #912 (closed defect: fixed)
Nightly scheduler fails to trigger if too many pending changes
| Reported by: | GillesGagniard | Owned by: | |
|---|---|---|---|
| Priority: | critical | Milestone: | 0.8.2 |
| Version: | 0.8.0 | Keywords: | database |
| Cc: |
Description
buildbot issues the following sqlite query to remove pending changes when triggering a Nightly scheduler in buildbot/db/connector.py :
def scheduler_retire_changes(self, schedulerid, changeids, t):
t.execute(self.quoteq("DELETE FROM scheduler_changes"
" WHERE schedulerid=? AND changeid IN ")
+ self.parmlist(len(changeids)),
(schedulerid,) + tuple(changeids))
However, sqlite only allows for 999 variables in a sql query, so this fails if there are more than 999 pending changes.
Change History
Note: See
TracTickets for help on using
tickets.
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
So putting that in a loop wiht some (probably smaller) limit on the number of variables used in a single query would be OK?