Python Forum
Terminating Subprocesses and Threads while they're calculating
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Terminating Subprocesses and Threads while they're calculating
#4
There are still things to try. You could call queue.close() and queue.join_thread() in the worker process when it receives the instruction to stop. This would wait until every data previously sent to the queue has been written in the underlying pipe. Also it would raise an exception if the run() function still tries to put() anything else in the queue.
lvlanson likes this post
Reply


Messages In This Thread
RE: Terminating Subprocesses and Threads while they're calculating - by Gribouillis - Oct-17-2020, 06:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Solved]Help terminating arduino properly classified 1 617 Dec-28-2024, 10:40 PM
Last Post: classified
  Subprocesses not opening File Select Dialog teut 2 3,284 Feb-22-2021, 08:07 PM
Last Post: teut
Question Terminating threads Gilush 1 2,601 Jun-09-2020, 09:57 AM
Last Post: Gribouillis
  Using Terminating Signal to Terminate Long Threads crcali 1 3,364 Apr-06-2018, 01:26 AM
Last Post: woooee

Forum Jump:

User Panel Messages

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