Commit 69f235d7 authored by Łukasz Nowak's avatar Łukasz Nowak

Separate alarm runs.

By registering noop activity on alarm itself which depends on tag used in alarm
only one alarm will be run in same time.
parent 94d7024b
...@@ -58,6 +58,7 @@ portal.portal_catalog.searchAndActivate(\n ...@@ -58,6 +58,7 @@ portal.portal_catalog.searchAndActivate(\n
packet_size=1, # just one to minimise errors\n packet_size=1, # just one to minimise errors\n
activate_kw={\'tag\': tag}\n activate_kw={\'tag\': tag}\n
)\n )\n
context.activate(after_tag=tag).getId()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -58,6 +58,7 @@ portal.portal_catalog.searchAndActivate(\n ...@@ -58,6 +58,7 @@ portal.portal_catalog.searchAndActivate(\n
packet_size=1, # just one to minimise errors\n packet_size=1, # just one to minimise errors\n
activate_kw={\'tag\': tag}\n activate_kw={\'tag\': tag}\n
)\n )\n
context.activate(after_tag=tag).getId()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
53 54
\ No newline at end of file \ No newline at end of file
...@@ -61,6 +61,7 @@ portal.portal_catalog.searchAndActivate(\n ...@@ -61,6 +61,7 @@ portal.portal_catalog.searchAndActivate(\n
method_id=\'SalePackingListLine_checkAndCancelCleanupPartition\',\n method_id=\'SalePackingListLine_checkAndCancelCleanupPartition\',\n
activate_kw={\'tag\': tag}\n activate_kw={\'tag\': tag}\n
)\n )\n
context.activate(after_tag=tag).getId()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -61,6 +61,7 @@ portal.portal_catalog.searchAndActivate(\n ...@@ -61,6 +61,7 @@ portal.portal_catalog.searchAndActivate(\n
method_id=\'SalePackingListLine_checkAndCancelUpdatePartition\',\n method_id=\'SalePackingListLine_checkAndCancelUpdatePartition\',\n
activate_kw={\'tag\': tag}\n activate_kw={\'tag\': tag}\n
)\n )\n
context.activate(after_tag=tag).getId()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -60,6 +60,8 @@ portal.portal_catalog.searchAndActivate(\n ...@@ -60,6 +60,8 @@ portal.portal_catalog.searchAndActivate(\n
method_id=\'SaleOrderLine_tryToAllocatePartition\',\n method_id=\'SaleOrderLine_tryToAllocatePartition\',\n
activate_kw={\'tag\': tag}\n activate_kw={\'tag\': tag}\n
)\n )\n
\n
context.activate(after_tag=tag).getId()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -65,6 +65,8 @@ portal.portal_catalog.searchAndActivate(\n ...@@ -65,6 +65,8 @@ portal.portal_catalog.searchAndActivate(\n
activate_kw={\'tag\': tag},\n activate_kw={\'tag\': tag},\n
**{"delivery.start_date": \'< %s\' % this_month}\n **{"delivery.start_date": \'< %s\' % this_month}\n
)\n )\n
\n
context.activate(after_tag=tag).getId()\n
]]></string> </value> ]]></string> </value>
......
...@@ -60,6 +60,8 @@ portal.portal_catalog.searchAndActivate(\n ...@@ -60,6 +60,8 @@ portal.portal_catalog.searchAndActivate(\n
method_id=\'SalePackingListLine_deliverSubscription\',\n method_id=\'SalePackingListLine_deliverSubscription\',\n
activate_kw={\'tag\': tag},\n activate_kw={\'tag\': tag},\n
)\n )\n
\n
context.activate(after_tag=tag).getId()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -59,6 +59,7 @@ portal.portal_catalog.searchAndActivate(\n ...@@ -59,6 +59,7 @@ portal.portal_catalog.searchAndActivate(\n
method_id=\'Computer_checkAndDesactivatePartitionList\',\n method_id=\'Computer_checkAndDesactivatePartitionList\',\n
activate_kw={\'tag\': tag}\n activate_kw={\'tag\': tag}\n
)\n )\n
context.activate(after_tag=tag).getId()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -61,6 +61,7 @@ portal.portal_catalog.searchAndActivate(\n ...@@ -61,6 +61,7 @@ portal.portal_catalog.searchAndActivate(\n
method_id=\'SalePackingListLine_checkAndDestroyNonInstanciatedPartition\',\n method_id=\'SalePackingListLine_checkAndDestroyNonInstanciatedPartition\',\n
activate_kw={\'tag\': tag}\n activate_kw={\'tag\': tag}\n
)\n )\n
context.activate(after_tag=tag).getId()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -60,6 +60,7 @@ portal.portal_catalog.searchAndActivate(\n ...@@ -60,6 +60,7 @@ portal.portal_catalog.searchAndActivate(\n
method_id=\'SaleInvoiceTransaction_stopConfirmed\',\n method_id=\'SaleInvoiceTransaction_stopConfirmed\',\n
activate_kw={\'tag\': tag}\n activate_kw={\'tag\': tag}\n
)\n )\n
context.activate(after_tag=tag).getId()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -65,6 +65,8 @@ context.portal_catalog.searchAndActivate(\n ...@@ -65,6 +65,8 @@ context.portal_catalog.searchAndActivate(\n
activate_kw={\'tag\':tag},\n activate_kw={\'tag\':tag},\n
method_kw={\'stop_date\': stop_date},\n method_kw={\'stop_date\': stop_date},\n
portal_type=\'Open Sale Order Line\')\n portal_type=\'Open Sale Order Line\')\n
\n
context.activate(after_tag=tag).getId()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
597 598
\ No newline at end of file \ No newline at end of file
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