Thank Roberto. @Jean, Thanks, but I don;t know how I can make ALL the processes flush their caches.
Look's like Roberto's case will work with all processes. On Tue, Sep 2, 2014 at 3:42 PM, Roberto De Ioris <[email protected]> wrote: > > > Hi list, > > > > Basically I'm designing a python app that will need to do many > > writes/second. > > > > And I cache rows in in-app-dictionary and write to the db every 100 > > requests. > > > > Does it make senses/possible with graceful reloading to execute a > function > > on the python-process and wait for it's return before closing it ? > > > > Thanks > > _______________________________________________ > > uWSGI mailing list > > [email protected] > > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > > > > You can set an atexit hook (atexit python module) in which you can commit > back your dictionary > > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
