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
Pipeline #37264 failed with stage
in 0 seconds
...@@ -4,7 +4,10 @@ portal.portal_catalog.searchAndActivate( ...@@ -4,7 +4,10 @@ portal.portal_catalog.searchAndActivate(
method_id='OpenOrder_updateSimulation', method_id='OpenOrder_updateSimulation',
portal_type=portal.getPortalOpenOrderTypeList(), portal_type=portal.getPortalOpenOrderTypeList(),
validation_state="validated", 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 # make alarm run once at time
......
...@@ -6,8 +6,11 @@ portal.portal_catalog.searchAndActivate( ...@@ -6,8 +6,11 @@ portal.portal_catalog.searchAndActivate(
parent_portal_type='Remote Node', parent_portal_type='Remote Node',
parent__validation_state='validated', parent__validation_state='validated',
method_id='ComputePartition_propagateRemoteNode', method_id='ComputePartition_propagateRemoteNode',
method_kw={"activate_kw": {'tag': tag}}, # This alarm bruteforce checking all documents,
activate_kw={'tag': tag} # 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() context.activate(after_tag=tag).getId()
...@@ -13,7 +13,10 @@ if monitor_enabled_category is not None: ...@@ -13,7 +13,10 @@ if monitor_enabled_category is not None:
validation_state='validated', validation_state='validated',
monitor_scope__uid=monitor_enabled_category.getUid(), monitor_scope__uid=monitor_enabled_category.getUid(),
method_id='ComputeNode_checkState', 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() context.activate(after_tag=tag).getId()
...@@ -8,7 +8,10 @@ portal.portal_catalog.searchAndActivate( ...@@ -8,7 +8,10 @@ portal.portal_catalog.searchAndActivate(
portal_type='Instance Tree', portal_type='Instance Tree',
validation_state='validated', validation_state='validated',
method_id='InstanceTree_checkSoftwareInstanceState', 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() 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