CRON job : script timeout ?

Status
Not open for further replies.

webtomata

New Member
Messages
11
Reaction score
0
Points
0
Hi there,

One of my CRON jobs appears to be timing out. I assume this occurs because I receive an email on completion of the script, even though I know the script has not completed

Basically the script downloads approx. 350 '.csv' files and the script has sufficient pauses in it so as not to hammer away at the servers. I estimate the minimum time it should take to do this is 40 minutes but I receive the 'completion' email from CRON within only a matter of minutes from the script scheduled start time.

Yes, I have set 'set_timeout_limit(3000)'.

Because I'm on free hosting am I limited on script execution time regardless of whether I set 'set_timeout_limit' in the script ? If so what are the limits and what hosting package will remove this time limit ?

If that's not the reason why my script is ending too soon any suggestions would be most welcome.

Many thanks,

Web
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
We do not allow overriding of the timeout, it is set at 30 seconds with an allowed 60 seconds for parsing input.

The only plans that would allow differently are paid ones, allowing free users to set the time would be asking for problems ;)

-Corey
 

webtomata

New Member
Messages
11
Reaction score
0
Points
0
Thanks Corey.

I assume that the 'static' package would allow no time limit on script execution ?

Also, as I was about to sign up for a static hosting, I noticed there is a 'promo development' hosting at $20. I can't find any details about it though so do you have a link or more info. I need the following php facilities :


cURL
mail()
no script time limits (or at least script time limits up to 10 hours)

Also when I sign up I'd like to use my currently free hosting domain and space so I'd simply enter that domain during the sign up process ?

Cheers
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
http://forums.x10hosting.com/news-announcements/27021-promotional-development-package.html

It has cURL and mail... I'm going to say 10 hours is quite a long time and if your script uses excessive amounts of memory\CPU it would still be subject to suspension. Even an hour is an excessive time for a single PHP script to run.

If you sign up there is a place to put in your current cPanel name, we would then transfer and upgrade that account.

-Corey
 
Status
Not open for further replies.
Top