cron job timeout 30s
-
Hi.
Thank you for a good plugin but I have lately run into a major problem.
I need to use cron jobs sine I cant send so many emails by smtp. But my cron service will Timeout for a job that takes more that 30s.
The cron service recomend that you program the scripts like this:You should design your scripts in a way that they send as little data as possible, ideally just a short status message at the end of the execution, e.g. “OK” — or simply nothing. In case your script is written in PHP and needs more than 30 seconds of run-time, you can use the following trick to let it continue to execute in the background: Use the PHP function ignore_user_abort(true) to tell PHP to continue the script execution after disconnection.
- The topic ‘cron job timeout 30s’ is closed to new replies.