首页
\
问答
\
在cherrypyart成功快速入门后启动后台进程(Start a background process upon successful quickstart in cherrypy)
在cherrypyart成功快速入门后启动后台进程(Start a background process upon successful quickstart in cherrypy)
我有一个基于cherrypy构建的REST WebService。 该服务与
cherrypy.quickstart()
调用联机。我希望在服务上线后立即使用
subprocess.Popen()
启动后台进程。cherrypy.quickstart()
调用正在阻塞。 如何添加回调以启动后台进程?I have a REST WebService built on top of cherrypy. The service goes online with the
cherrypy.quickstart()
call.I want to start a background process with
subprocess.Popen()
right after the service goes online. Thecherrypy.quickstart()
call is blocking. How can I add a callback to start the background process?
原文:https://stackoverflow.com/questions/30576735
更新时间:2023-07-11 20:07