> 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
