sgoswami-systango / django-cron

Automatically exported from code.google.com/p/django-cron
MIT License
0 stars 0 forks source link

Jobs are not remembered across django instances #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Because we're using threading.Timer, if the django instance is terminated
before the timer finishes, the job is just not run. 

I propose we move to a new approach that is something like this:

Create a piece of code that repeats periodically (maybe every 10 seconds)
that just checks if any jobs need to be run.

Have the actual jobs run immediately (instead of using timer) whenever the
repeating code determines enough time has passed based on `run_every`

Thoughts?

PS - Is there a way to make mod_python wait for a piece of code to finish
running? Maybe run it in seperate process using popen?

Original issue reported on code.google.com by Jim.mixt...@gmail.com on 18 Apr 2009 at 1:39

GoogleCodeExporter commented 9 years ago
I think this is fixed. Let me know

Original comment by Jim.mixt...@gmail.com on 2 Jun 2009 at 2:12