Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: cron & timeouts

  1. #1
    New Coder
    Join Date
    May 2005
    Location
    Leeds, UK
    Posts
    83
    Thanks
    1
    Thanked 0 Times in 0 Posts

    cron & timeouts

    My understanding of running php scripts under cron was that they weren't subject to the normal php script timeout. Is this not the case?

    I have, in the past, run scripts that must have taken a few minutes at least, but a cron job I ran today said it timed out after 30 seconds.

    Please someone set me straight - If you want to run an autonomous and long-running process can you use cron & php?

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Location
    Manchester, UK
    Posts
    533
    Thanks
    4
    Thanked 1 Time in 1 Post
    I always assumed cron didnt time out - I thought the time out was php/browser defined?

    How do you know it timed out? Is there some sort of logging going on? I only ask as I am setting up some pretty hefty cron scripts at the moment!

  • #3
    New Coder
    Join Date
    May 2005
    Location
    Leeds, UK
    Posts
    83
    Thanks
    1
    Thanked 0 Times in 0 Posts
    The php script running has error reporting enabled. The email sent by cron includes the php message that the maximum execution is exceeded.

    So it's the php script that is timing out, but I thought it wouldn't do so when run under cron.

    Am I wrong?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •