Skip to content

Cron: execute rules ordered by rule_id

Sandor Semsey requested to merge semseysandor/civirules:cron-order-by-id into master

Currently CRM_Civirules_BAO_Rule::findRulesForCron() returns rules unordored so the order in rules are executed by cron is undefined. Changing this to an ordered list has these pros:

  • rules are executed consistently each day
  • debugging is easier: just by looking at Last Triggered you can determine which rules succeeded/failed

Cons: ???

Merge request reports

Loading