Skip to content

Commit 931ba8f

Browse files
committed
Fix missing jobs arg for _initialize_populate in Pool
* Introduced in PR #969
1 parent 5364981 commit 931ba8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/autopopulate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def handler(signum, frame):
193193
# spawn multiple processes
194194
self.connection.close() # disconnect parent process from MySQL server
195195
del self.connection._conn.ctx # SSLContext is not pickleable
196-
with mp.Pool(processes, _initialize_populate, (self, populate_kwargs)) as pool:
196+
with mp.Pool(processes, _initialize_populate, (self, jobs, populate_kwargs)) as pool:
197197
if display_progress:
198198
with tqdm(desc="Processes: ", total=nkeys) as pbar:
199199
for error in pool.imap(_call_populate1, keys, chunksize=1):

0 commit comments

Comments
 (0)