python - Cherrypy initalization of Monitor object -


i have application uses cherrypy. run mod_python (which know deprecated) @ apache2 server.

i want use monitor plugin run periodic task. problem initialization of cherrypy , monitor object done when first request received. periodic task run late.

should use pythonimporter? if how should run?

here configuration of mod_python

pythonpath "sys.path+['/home/user/path/' ]" sethandler python-program pythonhandler cherrypy._cpmodpy::handler pythoninterpreter interperter pythonoption cherrypy.setup index::setup_server 


Comments