Commit 626cedb7 authored by Alain Takoudjou's avatar Alain Takoudjou

Speed up alarm to prevent conflicts

parent 8890c010
......@@ -56,7 +56,9 @@ portal.portal_catalog.searchAndActivate(\n
validation_state=\'validated\',\n
children_portal_type=\'Open Sale Order Line\',\n
method_id=\'OpenSaleOrder_updatePeriod\',\n
activate_kw={\'tag\': tag}\n
activate_kw={\'tag\': tag},\n
packet_size=1,\n
activity_count=100\n
)\n
context.activate(after_tag=tag).getId()\n
</string> </value>
......
......@@ -51,10 +51,6 @@
<item>
<key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n
after_alarm = getattr(portal.portal_alarms, \'slapos_update_open_sale_order_period\', None)\n
activate_kw = {\'tag\': tag}\n
if after_alarm is not None:\n
activate_kw[\'after_path_and_method_id\'] = (after_alarm.getPath(), (\'getId\'))\n
select_dict= {\'default_aggregate_uid\': None}\n
portal.portal_catalog.searchAndActivate(\n
portal_type=(\'Slave Instance\', \'Software Instance\'),\n
......@@ -65,7 +61,7 @@ portal.portal_catalog.searchAndActivate(\n
\n
method_id=\'SoftwareInstance_requestValidationPayment\',\n
packet_size=1, # Separate calls to many transactions\n
activate_kw=activate_kw\n
activate_kw={\'tag\': tag}\n
)\n
\n
context.activate(after_tag=tag).getId()\n
......
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