Skip to content
Snippets Groups Projects
Commit 18c4e7df authored by jaapjansma's avatar jaapjansma
Browse files

prevent from crashing cron events with max execution time error

parent eb9b33b7
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,9 @@ function _civicrm_api3_civirules_cron_spec(&$spec) {
function civicrm_api3_civirules_cron($params) {
$returnValues = array();
//prevent from crashing with a max execution time error
set_time_limit(0);
$rules = CRM_Civirules_BAO_Rule::findRulesForCron();
foreach($rules as $rule) {
$return = $rule->process();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment