diff options
author | SaiEswarEpuri <saieswar36@gmail.com> | 2015-07-06 11:28:23 +0530 |
---|---|---|
committer | SaiEswarEpuri <saieswar36@gmail.com> | 2015-07-06 11:28:23 +0530 |
commit | 74e28c92080fbc452d2d2f18e330860a643df82b (patch) | |
tree | 8086d7e001aeff57fde0c28d6d177214f0b5c76c /gnowsys-ndf/gnowsys_ndf | |
parent | 7bb3b43ae010f926a3434e844c9821b986a721db (diff) | |
download | gnowsys-74e28c92080fbc452d2d2f18e330860a643df82b.tar.gz |
corrected a minor bug while implementing multiprocessing
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/views/mis.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/views/mis.py b/gnowsys-ndf/gnowsys_ndf/ndf/views/mis.py index ccee2be..ebf9708 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/views/mis.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/views/mis.py @@ -501,7 +501,7 @@ def mis_create_edit(request, group_id, app_id, app_set_id=None, app_set_instance n2=n1/x #Process object is created.The list after being partioned is also given as an argument. for i in range(x): - processes.append(mp.Process(target=multi_,args=(systemtype_attributetype_set[i*n2:(i+1)*n2]))) + processes.append(mp.Process(target=multi_,args=(systemtype_attributetype_set[i*n2:(i+1)*n2],))) for i in range(x): processes[i].start()#each Process started for i in range(x): @@ -527,7 +527,7 @@ def mis_create_edit(request, group_id, app_id, app_set_id=None, app_set_instance n2=n1/x #Process object is created.The list after being partioned is also given as an argument. for i in range(x): - processes2.append(mp.Process(target=multi_2,args=(systemtype_relationtype_set[i*n2:(i+1)*n2]))) + processes2.append(mp.Process(target=multi_2,args=(systemtype_relationtype_set[i*n2:(i+1)*n2],))) for i in range(x): processes2[i].start()#each Process started for i in range(x): @@ -563,7 +563,7 @@ def mis_create_edit(request, group_id, app_id, app_set_id=None, app_set_instance n2=n1/x #Process object is created.The list after being partioned is also given as an argument. for i in range(x): - processes3.append(mp.Process(target=multi_3,args=(systemtype_attributetype_set[i*n2:(i+1)*n2]))) + processes3.append(mp.Process(target=multi_3,args=(systemtype_attributetype_set[i*n2:(i+1)*n2],))) for i in range(x): processes3[i].start()#each Process started for i in range(x): @@ -580,7 +580,7 @@ def mis_create_edit(request, group_id, app_id, app_set_id=None, app_set_instance n2=n1/x #Process object is created.The list after being partioned is also given as an argument. for i in range(x): - processes4.append(mp.Process(target=multi_4,args=(systemtype_relationtype_set[i*n2:(i+1)*n2]))) + processes4.append(mp.Process(target=multi_4,args=(systemtype_relationtype_set[i*n2:(i+1)*n2],))) for i in range(x): processes4[i].start()#each Process started for i in range(x): @@ -661,7 +661,7 @@ def mis_create_edit(request, group_id, app_id, app_set_id=None, app_set_instance n2=n1/x #Process object is created.The list after being partioned is also given as an argument. for i in range(x): - processes5.append(mp.Process(target=multi_5,args=(lst11[i*n2:(i+1)*n2]))) + processes5.append(mp.Process(target=multi_5,args=(lst11[i*n2:(i+1)*n2],))) for i in range(x): processes5[i].start()#each Process started for i in range(x): @@ -695,7 +695,7 @@ def mis_create_edit(request, group_id, app_id, app_set_id=None, app_set_instance n2=n1/x #Process object is created.The list after being partioned is also given as an argument. for i in range(x): - processes6.append(mp.Process(target=multi_6,args=(lst12[i*n2:(i+1)*n2]))) + processes6.append(mp.Process(target=multi_6,args=(lst12[i*n2:(i+1)*n2],))) for i in range(x): processes6[i].start()#each Process started for i in range(x): @@ -744,7 +744,7 @@ def mis_create_edit(request, group_id, app_id, app_set_id=None, app_set_instance n2=n1/x #Process object is created.The list after being partioned is also given as an argument. for i in range(x): - processes7.append(mp.Process(target=multi_7,args=(systemtype_attributetype_set[i*n2:(i+1)*n2]))) + processes7.append(mp.Process(target=multi_7,args=(systemtype_attributetype_set[i*n2:(i+1)*n2],))) for i in range(x): processes7[i].start()#each Process started for i in range(x): @@ -789,7 +789,7 @@ def mis_create_edit(request, group_id, app_id, app_set_id=None, app_set_instance n2=n1/x #Process object is created.The list after being partioned is also given as an argument. for i in range(x): - processes8.append(mp.Process(target=multi_4,args=(systemtype_relationtype_set[i*n2:(i+1)*n2]))) + processes8.append(mp.Process(target=multi_4,args=(systemtype_relationtype_set[i*n2:(i+1)*n2],))) for i in range(x): processes8[i].start()#each Process started for i in range(x): |