标签: python python-3.x flask gunicorn
在每个对特定端点的请求之后,我想杀死一名枪手工人:
GET /endpoint
200 OK
我只能找到在任何请求后重新启动的方法(使用Gunicorn的max_requests设置),但这不是我想要的。 基本上,我需要max_requests=1,但仅应用于一个特定的端点,而不是所有的端点。
max_requests
max_requests=1