Skip to content

Commit

Permalink
Remove deleted versions from builds queue
Browse files Browse the repository at this point in the history
Stupid mistake! Was so focused on ensuring deleted versions were skipped
in current builds, and ignored in future refreshes of the build_queue
that I forgot to tell slave-driver to eliminate them from the *existing*
build_queue...
  • Loading branch information
waveform80 committed Aug 14, 2020
1 parent 9c09468 commit 35cb55c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions piwheels/master/slave_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ def handle_delete(self, queue):
for abi in self.excluded_builds:
self.excluded_builds[abi][(del_pkg, del_ver)] = (
datetime.now(tz=UTC) + timedelta(hours=1))
for abi, build_queue in self.abi_queues.items():
self.abi_queues[abi] = [
(pkg, ver)
for pkg, ver in build_queue
if (del_pkg, del_ver) not in ((pkg, ver), (pkg, None))
]
for slave in self.slaves.values():
if slave.reply[0] == 'BUILD':
build_pkg, build_ver = slave.reply[1]
Expand Down

0 comments on commit 35cb55c

Please sign in to comment.