Ancestors

Toot

Written by Andy Millington on 2024-09-26 at 14:15

@pollita, @derickr could either of you help me understand max_execution_time in PHP? What is it actually counting? The php docs say how long a script runs but that feels quite vague. I have a long running job that is kicked off by one command and it randomly hits max execution time every now and then. The job runs for a lot longer than the max execution time so I'm unsure how exactly this is counted. Any insights would be much appreciated as I have no idea who to ask about this

=> More informations about this toot | More toots from sephster@fosstodon.org

Descendants

Written by Andy Millington on 2024-09-26 at 14:28

@pollita @derickr and sorry to contact you both directly. Any help you can give me would be greatly appreciated but no worries if you are unable to help. Thanks for your time

=> More informations about this toot | More toots from sephster@fosstodon.org

Written by Derick Rethans on 2024-09-26 at 14:34

@sephster @pollita It counts CPU time, not wall time.

=> More informations about this toot | More toots from derickr@phpc.social

Written by Derick Rethans on 2024-09-26 at 14:36

@sephster @pollita So if your script is waiting on IO, that doesn't get counted. I believe it uses a timer on Unix.

However, on Windows, it used to measure actual wall time. I'm not sure if that had been fixed recently.

=> More informations about this toot | More toots from derickr@phpc.social

Written by Andy Millington on 2024-09-26 at 14:51

@derickr @pollita and by script, it just means how long it spends waiting to execute commands a single file?

I think the issue I'm seeing is something to do with curl. The guzzle curl factory is hitting max execution time and I've no idea why at present. Thank you for your help Derick. Much appreciated

=> More informations about this toot | More toots from sephster@fosstodon.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113204274399507827
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
284.168333 milliseconds
Gemini-to-HTML Time
0.86671 milliseconds

This content has been proxied by September (ba2dc).