Skip to content

Commit

Permalink
#700 fix so all processes join
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly committed Apr 1, 2013
1 parent 22750ff commit 4c46b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/cli.py
Expand Up @@ -439,8 +439,8 @@ def chunks(l, n):
yield l[i*newn:i*newn+newn]
yield l[n*newn-newn:]

processes = []
for chunk in chunks(package_ids, mp.cpu_count()):
processes = []
process = mp.Process(target=start, args=(chunk,))
processes.append(process)
process.daemon = True
Expand Down

0 comments on commit 4c46b57

Please sign in to comment.