Commit 2c6636b7 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_interface_post: use a serialization_tag per mail reference when sending them

To prevent race-condition in a multi-node environement (ie: 2 activity nodes load the afterAllowExport activities for 2 Posts having the same reference)
parent 7437aa27
...@@ -6,4 +6,8 @@ ...@@ -6,4 +6,8 @@
# to send it by bunches using alarm. Or ... # to send it by bunches using alarm. Or ...
# Priority 2 is just enough to be executed after the immediateReindexObject # Priority 2 is just enough to be executed after the immediateReindexObject
context.activate(priority=2).InterfacePost_disallowExportOfSameInterfacePostListAndExport() tag="InterfacePostWorkflow_afterAllowExport:%s" % context.getReference()
context.activate(
serialization_tag=tag,
priority=2,
).InterfacePost_disallowExportOfSameInterfacePostListAndExport()
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