W dniu 09.07.2011 17:35, Stéphane Klein pisze:
Hi,

I wounder if Advanced Python Scheduler (APScheduler) - http://readthedocs.org/docs/apscheduler/en/latest/ can work with Pyramid and Pylons 1.0 ?

Thanks for your comments.

Regards,
Stephane
Hi.
Sure it can. I've done this for my own web applications. The way you want to do it is either construct another thread (probably by the means of a function launched in config/environment.py load_environment()) and then proceed with most of the tasks you want to schedule, or like I did it myself, write script detached from the web application (i.e. make_app function launched by Paster entry point) and then utilize process to launch your script as a daemon. Writing separate script running as a daemon won't impact performance of the web app itself in case if you are up to some resource intensive tasks (which I assume you do).

Best regards,
Karol Tomala

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to