Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用flask和uwsgi ..在某些时候我需要知道uwsgi何时停止或我的应用程序(Flask)对象何时被破坏以及何时发生,执行一个函数。有任何想法吗 ??请
你可以使用 python atexit 模块或 uwsgi.atexit 钩子