Excellent suggestions, guys! I'm impressed. I originally just had a simple issue to running the background task to complement the Pylons application, but looking over everybody's suggestions, I can see that I can refactor a lot of other systems that I deal with to make them easier to maintain and get rid of some of the nasty issues. It looks like all of these suggestions will be able to carve out some little niches in the various tasks that I have to do.
CRON jobs --------- I'm currently using these (and the scheduler in Windows) and the addition of monitoring code, overlap prevention code, polling response vs. performance tradeoffs, etc all start to create a tangled web of scheduling times and code. It's fine when everything is running well, but if I need to shut down something for a while or a dependency task fails, it's easy to make a mistake and cause unnecessary grief. Supervisord ----------- This looks great for replacing all of the inter-dependent Python scripts / native applications that I have running under CRON. For the web-related services, I see some of the issues of the CRON jobs where I have dependencies between the WSGI web application and the scheduled scripts, so while it would work fine for the web apps, I think that I'll use the mod_wsgi approach for the background web scripts. However, I like the idea of adding the monitoring scripts under supervisord that verify that the web apps are behaving properly since I want those isolated. mod_wsgi -------- First of all, Graham, you went above and beyond on the details. Thank you very much! This is a great solution for running the web-related tasks and it has the advantages that 1) I don't have to modify much of my existing code and 2) that my web app and the background threads will all be configured in one place (the Apache configuration file). Twisted Daemon -------------- This is another great solution and I'm going to dig through the __Twisted Network Programming Essentials__ book to see if I can use this for some future refactoring of the existing Python-based CRON scripts, etc. These suggestions are excellent, I'll add a to-do item to try and post some of these ideas to the Pylons HQ wiki. -Eric --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
