Commit dbd4dc03 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: decrease the activity priority value

Try to not accumulate too many activities
parent b9198644
......@@ -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