Commit 6cfebfd1 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: decrease the activity priority value

Try to not accumulate too many activities
parent f1f5e1c3
......@@ -100,7 +100,11 @@ class SimulableMixin(Base):
applied_rule = self._createRootAppliedRule()
expand_root = applied_rule is not None
activate_kw = {'tag': 'build:'+self.getPath(),
'priority': SIMULATION_PRIORITY
# Keep this value lower than the current priority
# to allow the full _updateSimulation
# to be finished before triggering new one
# and so, trying to not increase the number of activities
'priority': max(1, SIMULATION_PRIORITY-1)
}
if expand_root:
applied_rule.expand(activate_kw=activate_kw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment