I have some scrips that take a while to run so I had to incrase lsapi_backend_max_process_time from 300. 99.99% of the time I would like the value to be at 300. But for those few times it needs to be longer, is there some way for my php script to communicate back to lsapi that it is still working and needs more time? I tried echoing something at regular intervals to no avail.
Also, the way the this timeout works, it just kills the php process dead in its tracks without allowing it to run any registered shutdown functions. Optimally Id like there to be two timeouts, 1) that sends a messages to php telling it to die after X seconds, but still allows it to run cleanup functions. Then 2) one that functions like the lsapi_backend_max_process_time where it would total kill the php process immediately after X seconds.
Sidenote: the docs say the default value for lsapi_backend_max_process_time is 3600 when it is actually 300.
Also, the way the this timeout works, it just kills the php process dead in its tracks without allowing it to run any registered shutdown functions. Optimally Id like there to be two timeouts, 1) that sends a messages to php telling it to die after X seconds, but still allows it to run cleanup functions. Then 2) one that functions like the lsapi_backend_max_process_time where it would total kill the php process immediately after X seconds.
Sidenote: the docs say the default value for lsapi_backend_max_process_time is 3600 when it is actually 300.
Comment