D6.14: Job queue should not use ini_get('max_execution_time'), but call drupal_set_time_limit() itself

Damien Tournoud - September 19, 2009 - 11:39
Project:Job queue
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

Job queue is apparently broken, because it calls ini_get('max_execution_time'), which is undefined as soon as set_time_limit() was executed during the request.

This is the case for all Drupal hook_cron() implementations since #193383: set_time_limit: Centralize calls and prevent warnings and errors went in.

#1

hass - September 19, 2009 - 16:58

drupal_set_time_limit($time_limit) is only available in D7, not in D6 and works completly different. We need the max runtime - we do *not* like to *set* a runtime.

 
 

Drupal is a registered trademark of Dries Buytaert.