[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 reacto

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 library

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 https://github.com/ray-pr

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 instantia

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

2020-05-21 Thread Sereysethy TOUCH
I am on MacOS, it is a development phase, but deployment will be on Linux. It is hard to run dtrace/dtruss on MacOS due to the "system integrity protection" on MacOS. I got some output but very limited information. So if there is a workaround you might suggest? TS On Thu, May 21, 2020 at 10:20