Skip to content

Commit f789892

Browse files
committed
initialize all threads early so they get their worker_no
1 parent 6b77bd9 commit f789892

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lilac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ def start_build(
261261
max_workers = max_workers,
262262
initializer = setup_thread,
263263
) as executor:
264+
# initialize all threads so they get their worker_no
265+
executor.map(lambda: None)
266+
264267
while True:
265268
pkgs = try_pick_some(
266269
repo,

0 commit comments

Comments
 (0)