Re: [Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-21 Thread Sereysethy TOUCH
Hi Jean-Paul, I found the error after working on a short, self contained, correcte example. It is not about twisted and normal thread in general, but something else. After more tests, I come to realise that whenever I instantiate this class PolicyClient from this library

Re: [Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-21 Thread Jean-Paul Calderone
On Thu, May 21, 2020 at 3:56 PM Sereysethy TOUCH wrote: > Hi Jean-Paul, > > I found the error after working on a short, self contained, correcte > example. It is not about twisted and normal thread in general, but > something else. > > After more tests, I come to realise that whenever I

Re: [Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-21 Thread Jean-Paul Calderone
On Thu, May 21, 2020 at 10:58 AM Sereysethy TOUCH < touch.sereyse...@gmail.com> wrote: > Hello, > > I am developing a twisted app, and it runs as a service using twistd -y to > start the app. > I am having a problem of running a thread. I know it is not recommended to > use thread, but the

[Twisted-Python] Twisted and Thread, thread not running when twisted app is running as service

2020-05-21 Thread Sereysethy TOUCH
Hello, I am developing a twisted app, and it runs as a service using twistd -y to start the app. I am having a problem of running a thread. I know it is not recommended to use thread, but the library that I use, the object created is running in a thread. Here is the problem: 1) if I start