It really depends on how you're running your instance of Django...

If you are using mod-python, then you have the central, single process of python that you *could* take advantage of and run a thread from. Perhaps not ideal, and a a complete PITA to debug, but available. If you're running Django with FLUP/FastCGI those same options aren't (potentially) available.

For myself, I just expect to have some required "out of band" processing and run those things as completely external processes. In one case, it's a system scanner - and I run it from a different machine than the django instance is served from. It has the same codebase, and accesses the central database - but the process of scanning takes advantage of win32 specific bits (wmi) and I'm hosting the django instance on linux.

There's a periodic process and a nightly process - both of which I run with scheduled tasks on windows. For linux, it would be cron. Finding a cross platform process invoking scheduling system is, well, tricky. cron with cygwin if you're really insistent. I just gave up on perfect platform parity - but then I was taking advantage of win32 specific bits anyway.

-joe

On 6/26/06, Harish Mallipeddi <[EMAIL PROTECTED]> wrote:
I'm wondering if someone could advise me on how to do certain periodic
background tasks with django? For instance, if I needed to retrieve a
list of RSS feeds daily to check for updates how would I do that?

Is there a way to do this by resorting to a solution within the django
framework and not some OS-level solution like cron jobs on Linux? I'm
developing on Windows and would love it if the solution is
OS-independent.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to