Commit ccd9270d authored by Łukasz Nowak's avatar Łukasz Nowak

Make only one alarm running in time.

Alarm Tool will not run another alarm if there is activity running on alarm
document.

So register such one which depends on tag which is passed to alarm working
scripts.

Thanks to this new alarm will not be registered until current one will finish.
parent 8af4e4e5
...@@ -65,6 +65,10 @@ context.getPortalObject().portal_catalog.searchAndActivate(\n ...@@ -65,6 +65,10 @@ context.getPortalObject().portal_catalog.searchAndActivate(\n
activate_kw={\'tag\': tag, \'priority\': 4},\n activate_kw={\'tag\': tag, \'priority\': 4},\n
**kw\n **kw\n
)\n )\n
\n
# register activity on alarm object waiting for own tag in order to have only one alarm\n
# running in same time\n
context.activate(after_tag=tag).serialize()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
583 584
\ 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