Whats the maximum execution time of cron. is it possible to modify it if so any side effects.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The accepted answer above is INCORRECT. Cron’s time limit in Drupal is hardcoded to 240 seconds. See the
drupal_cron_runfunction inincludes/common.inc, specifically these lines:and
(based on the source of Drupal 7.12)
So, there is no way to change this globally without hacking core. I have heard it suggested to call
drupal_set_time_limityourself inside of yourhook_cronimplementation, as doing so resets PHP’s counter. However that won’t help you when it’s a third-party module implementinghook_cron.