Skip to content

Commit c3919cf

Browse files
Merge pull request #997 from mspacek/mp_jobs
Fix missing jobs arg for _initialize_populate in Pool
2 parents e67046e + f86de87 commit c3919cf

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)