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 that I use, the object created is running in a > thread. > > Here is the problem: > > 1) if I start reactor by running reactor.run() directly, thread is running > fine > 2) if I run it as a service using twisted, the thread is not running, it > runs but it seems to be blocked, because I tried to write something to file > using time.sleep(), but file is empty. > > Is there something that I miss? How can I debug this? > A good next step would be to create at Short, Self Contained, Correct (Compilable), Example <http://sscce.org/> and share it. Jean-Paul > > Thank you, > > TS > _______________________________________________ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python >
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python