Python Forum
Multiprocessing Pool Multiple Instances How to Kill by Pool ID
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiprocessing Pool Multiple Instances How to Kill by Pool ID
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  kill python execution program lebossejames 0 252 Mar-16-2024, 11:16 AM
Last Post: lebossejames
Question Using SQLAlchemy, prevent SQLite3 table update by multiple program instances Calab 3 761 Aug-09-2023, 05:51 PM
Last Post: Calab
  Python: re.findall to find multiple instances don't work but search worked Secret 1 1,228 Aug-30-2022, 08:40 PM
Last Post: deanhystad
  Python multiprocessing Pool apply async wait for process to complete sunny9495 6 6,467 Apr-02-2022, 06:31 AM
Last Post: sunny9495
  How to immediately kill and restart a thread while using a time.sleep() inside it? philipbergwerf 4 3,557 Feb-07-2022, 04:16 PM
Last Post: Gribouillis
  Pool multiprocessing - know current status in loop? korenron 0 1,646 Jul-28-2021, 08:49 AM
Last Post: korenron
  pool mysql error - not catch by try\except? korenron 1 2,155 Jul-05-2021, 11:26 AM
Last Post: ibreeden
  Python - Import file sequence into Media Pool jensenni 1 2,154 Feb-02-2021, 05:11 PM
Last Post: buran
  Using a button to kill and restart a script duckredbeard 3 3,337 Sep-01-2020, 12:53 AM
Last Post: duckredbeard
  python multiprocessing import Pool, cpu_count: causes forever loop | help to remove Hassibayub 0 1,875 Jun-18-2020, 05:27 PM
Last Post: Hassibayub

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020