Forum Moderators: phranque

Message Too Old, No Replies

apache timeout

job failing due to timeout

         

adwhite

2:56 pm on Feb 14, 2008 (gmt 0)

10+ Year Member



Hi,

I have a php background job (running every 2 minutes from crontab - but it only does something if there is something for it to do) that recreates hundreds of thumbnail images. This runs automatically when a user loads new images so it may run once a week or once a day.

To limit the impact on the server I have it sleep for a second every few images, but even without that it's running for longer than 300 seconds which is the httpd.conf apache timeout value.

I could change the timeout value but I'm loathe to do that for the whole machine in fact I'd rather reduce it. Is there a solution to get the job to run without changing the timout value?

adwhite

5:40 pm on Feb 14, 2008 (gmt 0)

10+ Year Member



I solved this if anyone needs a solution