Commit 2e08776e authored by Romain Courteaud's avatar Romain Courteaud

erp5_interaction_drop/slapos_crm/slapos_cloud: increate priority of alarms...

erp5_interaction_drop/slapos_crm/slapos_cloud: increate priority of alarms checking all documents without changing them
parent 58b09a86
......@@ -4,7 +4,10 @@ portal.portal_catalog.searchAndActivate(
method_id='OpenOrder_updateSimulation',
portal_type=portal.getPortalOpenOrderTypeList(),
validation_state="validated",
activate_kw={'tag':tag}
# This alarm bruteforce checking all documents,
# without changing them directly.
# Increase priority to not block other activities
activate_kw={'tag':tag, 'priority': 2}
)
# make alarm run once at time
......
......@@ -6,8 +6,11 @@ portal.portal_catalog.searchAndActivate(
parent_portal_type='Remote Node',
parent__validation_state='validated',
method_id='ComputePartition_propagateRemoteNode',
method_kw={"activate_kw": {'tag': tag}},
activate_kw={'tag': tag}
# This alarm bruteforce checking all documents,
# without changing them directly.
# Increase priority to not block other activities
method_kw={"activate_kw": {'tag': tag, 'priority': 2}},
activate_kw={'tag': tag, 'priority': 2}
)
context.activate(after_tag=tag).getId()
......@@ -13,7 +13,10 @@ if monitor_enabled_category is not None:
validation_state='validated',
monitor_scope__uid=monitor_enabled_category.getUid(),
method_id='ComputeNode_checkState',
activate_kw={'tag':tag}
# This alarm bruteforce checking all documents,
# without changing them directly.
# Increase priority to not block other activities
activate_kw={'tag':tag, 'priority': 2}
)
context.activate(after_tag=tag).getId()
......@@ -8,7 +8,10 @@ portal.portal_catalog.searchAndActivate(
portal_type='Instance Tree',
validation_state='validated',
method_id='InstanceTree_checkSoftwareInstanceState',
activate_kw = {'tag':tag}
# This alarm bruteforce checking all documents,
# without changing them directly.
# Increase priority to not block other activities
activate_kw = {'tag':tag, 'priority': 2}
)
context.activate(after_tag=tag).getId()
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