rashmisajjan / django-cron

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

last_run field in django_cron_job table is renewing every time you're trying to do a request for the site page #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run apache in prefork mode
2. Renew random page from your app for several times 
3. Check last_run field in django_cron_job table. The field always contains the 
time of last 
request

What is the expected output? What do you see instead?
This field should be renewed only at server startup and after a job was 
completed

What version of the product are you using? On what operating system?

Please provide any additional information below.
Everything was OK when I was using apache in worker mode. I used such 
directives as:
PythonAutoReload Off  and
MaxRequestsPerChild 0
But due to some reasons of compatibility I should run apache only in prefork 
mode and now I'm 
getting such type of problem.

Original issue reported on code.google.com by dmitry.k...@gmail.com on 22 Jul 2009 at 12:33

GoogleCodeExporter commented 8 years ago
I might be that `last_run` time is correct, and that it's running the job every 
time
a page is loaded

let me know if that is the case.

If so, we'll need to find a way of being more respectful of the `run_frequency`

Original comment by Jim.mixt...@gmail.com on 28 Oct 2009 at 2:25