[英]Run python script outside of webserver
My django app is running on an nginx/uwsgi stack. 我的django应用程序运行在nginx / uwsgi堆栈上。 My goal is to start a python script which runs independently from the web server.
我的目标是启动一个独立于Web服务器运行的python脚本。 By hitting a endpoint on django, it would thus fire off a non blocking script.
通过点击django上的端点,它将触发非阻塞脚本。
I've looked into using python subprocess/Popen - i'm just not sure if the script is still running on the web server or not via subprocess.Popen() 我已经研究过使用python subprocess / Popen - 我只是不确定脚本是否仍然在web服务器上运行,或者不是通过subprocess.Popen()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.