Closed Thread
Results 1 to 5 of 5
Like Tree2Likes
  • 2 Post By webtomata

Thread: CRON job : script timeout ?

  1. #1
    webtomata is offline x10Hosting Member webtomata is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    11

    CRON job : script timeout ?

    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
    dinomirt96 and karimirt47 like this.

  2. #2
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: CRON job : script timeout ?

    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
    Corey Arbogast | CEO
    █ 888-X10-9668 - corey[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    webtomata is offline x10Hosting Member webtomata is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    11

    Re: CRON job : script timeout ?

    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

  4. #4
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: CRON job : script timeout ?

    http://forums.x10hosting.com/news-an...t-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
    Corey Arbogast | CEO
    █ 888-X10-9668 - corey[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  5. #5
    webtomata is offline x10Hosting Member webtomata is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    11

    Re: CRON job : script timeout ?

    Thanks, I've signed up for the development package :happysad:

Closed Thread

Similar Threads

  1. HELP - Running PHP script via CRON job doesn't work
    By marquise in forum Scripts & 3rd Party Apps
    Replies: 5
    Last Post: 08-24-2008, 09:53 PM
  2. Cron Tutorial (Crontab Tutorial)
    By sunils in forum Tutorials
    Replies: 3
    Last Post: 06-14-2008, 10:34 PM
  3. Access to 300+ PHP scripts (2500 credits)
    By jonathanyaniv in forum The Marketplace
    Replies: 11
    Last Post: 06-03-2008, 10:58 PM
  4. Replies: 8
    Last Post: 12-03-2007, 04:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers