Skip to content Skip to sidebar Skip to footer

How To Execute A Function When Uwsgi Is Stopped

i am using flask and uwsgi.. At some point i need to know when uwsgi is stopped or when my app (Flask) object is destroyed and when it happens, execute a function. Any ideas ?? Ple

Solution 1:

you can use the python atexit module or the uwsgi.atexit hook


Post a Comment for "How To Execute A Function When Uwsgi Is Stopped"