diff --git a/master/bt5/erp5_interaction_drop/SkinTemplateItem/portal_skins/erp5_interaction_drop/Alarm_updateOpenOrderSimulation.py b/master/bt5/erp5_interaction_drop/SkinTemplateItem/portal_skins/erp5_interaction_drop/Alarm_updateOpenOrderSimulation.py index d879b081833c11f7e72579aa4765ad1d202fc745..40d7900038c98bd83e38db2feb85dc8e586ff2ab 100644 --- a/master/bt5/erp5_interaction_drop/SkinTemplateItem/portal_skins/erp5_interaction_drop/Alarm_updateOpenOrderSimulation.py +++ b/master/bt5/erp5_interaction_drop/SkinTemplateItem/portal_skins/erp5_interaction_drop/Alarm_updateOpenOrderSimulation.py @@ -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 diff --git a/master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Alarm_propagateRemoteNodeInstance.py b/master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Alarm_propagateRemoteNodeInstance.py index bed03ebca55dbcc623ac218e1c05cc6c02d75af2..bff57ff2d2276d5719351633fc21308d32dd4a9c 100644 --- a/master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Alarm_propagateRemoteNodeInstance.py +++ b/master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Alarm_propagateRemoteNodeInstance.py @@ -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() diff --git a/master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Alarm_checkComputeNodeState.py b/master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Alarm_checkComputeNodeState.py index 19348b72d5cfc59f9c3c3764f6d83ed090545eab..11992b4a40599ce4843e5ebfd2460999a170b659 100644 --- a/master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Alarm_checkComputeNodeState.py +++ b/master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Alarm_checkComputeNodeState.py @@ -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() diff --git a/master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Alarm_checkInstanceTreeState.py b/master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Alarm_checkInstanceTreeState.py index dab2cd00deb32861a6f2aa31194837564b17a216..f4abfa9cbfaa265cb8c24aaa27a63d19b9a0772d 100644 --- a/master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Alarm_checkInstanceTreeState.py +++ b/master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Alarm_checkInstanceTreeState.py @@ -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()