You are here:  » fetch.php runs in a loop


fetch.php runs in a loop

Submitted by Convergence on Fri, 2014-05-16 13:41 in

Greetings,

This is probably only specific to us.

We have one CRON job that never ends. Have watched the same feeds get "fetched" over and over. Will start with one fetch process, then add another, then another - all under the same CRON. We have 86 feeds on this CRON (did have 106, removed some as a test).

Here is our fetch.php which has been modified a few times over the years to meet our needs/version number.

{code saved}

Submitted by support on Sun, 2014-05-18 10:00

Hi Convergence,

Code looks fine - my immediate thought then is whether the CRON job is firing multiple times. Could you perhaps check the job configuration, and in particular the "minute" value, which should be zero. If it has inadvertently become "*" then the job would be triggered every minute in the configured hour - which would be observed as the processes appearing to repeat itself...

If all looks OK, let me know and I'll check it out further with you...

Cheers,
David.
--
PriceTapestry.com

Submitted by Convergence on Sun, 2014-05-18 17:29

Hi David,

Good there - times are set correctly.

I'm thinking, since we have the same code on multiple installs, that there were other CRONs, ie: unzip/fetch, etc. that ran and interferred with that particular CRON job. Hence my other thread about speeding things up.

Will implement the other thread and see if that works.

Thanks!