I wrote a specialized JSON-RPC server and just started working in the application logic and found it constantly annoying to constantly stop / restart the server to make certain changes.
I used to have a handler that ran intervals to compare the modified timestamps of the module with the last check, and then reload the module as needed. Unfortunately, I do not believe that it will work correctly.
Is there a way to stop the reactor and restart it the same as Paster Reloadable HTTPServer?
Twisted - twisted.python.rebuild, , , .
. SO: python
- paster reloader, :
, - , / - , .
:
, subprocess.Popen() , stdin/stdout. stdin ( , . twisted.internet.stdio, , stdio, ).
subprocess.Popen()
twisted.internet.stdio
, , - stdin , . . , , - .
( , )
Source: https://habr.com/ru/post/1727734/More articles:Unable to load google maps javascript dynamically - javascriptiPhone as a robot controller - iphoneHow to do the following in Dynamic Linq using the System.Linq.Dynamic namespace - linqchange wave height in Android? - androidIs there a way for BDD Ruby Shoes? - ruby | fooobar.comHow to add data from NSMutableString to NSArray? - objective-cChecking code changes in all imported python modules - pythonSQL Server: Group Results by Time Interval - datetimeHow to count the number of lines (Hough Trasnform) in OpenCV - opencvDelete orphan SQL - sqlAll Articles