Re: using threads in twisted
Phil Mayers <[email protected]>
| Newsgroups | gmane.comp.python.twisted.web |
|---|---|
| Message-ID | <[email protected]> |
On 04/18/2011 11:36 AM, Ivan wrote: > Thanks, but how to kill workers by timeout in this example ? You can't kill threads reliably in python AIUI. If you want to reliably kill a task, spawn a process. Alternatively you might see if you can break the task up into small pieces of work, and schedule it in the mainloop using something like task.cooperator.