Python Forum

Full Version: Multiprocessing Pool Multiple Instances How to Kill by Pool ID
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Iam working multiple multiprocessing pool which was working fine, but the main issue is, how i can kill only particular pool.

[Image: S4Zf1Gm.png]

When i select the Camp1 and run it was running,it select list related to the campaign and running without issue.


self.pool = Pool(processes=10) p = list(itertools.product(searchengines, selecteddomains, searchterms)) params = [(a, api, name_of_camp, da, pidfileloc, proxies, logfileloc, hours, domainfileloc, siteregistration, mozapi, mozsecret) for a in p] self.pool.starmap_async(Expired_Search, params)
I cant get the Pool ID to terminate the process. Is there any way to get Pool ID to terminate the process of only campaign i selected.

Any help would be appreciated. Thanks