rashmisajjan / django-cron

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

modPython will cripple django-cron if maxRequestsPerChild is 1 #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. in your httpd.conf file set maxRequestsPerChild to 1
2. watch as django-cron does nothing because apache is killing the process
before it gets a chance to execute anything

I'm not sure what we can do other than to reccomend people set
maxRequestsPerChild to a minimum of 20.

I had an idea about adding 2 datetime fields called 'firstScheduled' and
'lastExecuted' and then using some basic arithmetic to calculate if the
tast needs to be run again.

Will look into that

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

GoogleCodeExporter commented 8 years ago
implemented the idea, setting maxRequestsPerChild higher than 1 is still a good 
idea
though :)

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

GoogleCodeExporter commented 8 years ago
marking as fixed

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