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 authored and wardi committed Jul 15, 2013
1 parent 479aee4 commit ceb1652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/cli.py
Expand Up @@ -438,8 +438,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 ceb1652

Please sign in to comment.