Skip to content

Commit 5f966f1

Browse files
MagicRBMic92
authored andcommitted
Fix iterating and mutating build_schedule_order at the same time
Signed-off-by: magic_rb <[email protected]>
1 parent 4e6021e commit 5f966f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildbot_nix/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def run(self) -> Generator[Any, Any, None]:
385385

386386
# check which jobs should be scheduled now
387387
schedule_now = []
388-
for build in build_schedule_order:
388+
for build in list(build_schedule_order):
389389
if job_closures.get(build.drvPath):
390390
pass
391391
elif failed_builds.check_build(build.drvPath) and not self.build.reason == "rebuild":

0 commit comments

Comments
 (0)