Commit 83df786f authored by Jérome Perrin's avatar Jérome Perrin

configurator standard: make sure there are no "build" activities before activating more in alarms

Otherwise we quickly end up with thousands of activities when one builder has a problem.
parent 3fda1482
master allow_login_change allow_login_change_wip arnau arnau-RD-Components-ERP5ShortMessage arnau-TM-FEC-output arnau-TM-getTypeBasedMethod-for-init_script arnau-TM-isBuildable-with-multiple-BusinessLinks arnau-TM-jabber-client-desktop-notifications arnau-TM-runUnitTest-clear-previous-execution-catalog arnau-kns arnau-real-time-inventory-accounting bt5_config callable-jupyter-storage catalog_filter cherry-pick-243c2f03 cherry-pick-304d7a28 cherry-pick-4a8e045d cleanup_acquisition_base_category cmf_upgrade_versions compact_title_no_reference delivery_item_barcode dsn-phase3 eos-dev erp5-component erp5-imt erp5-messenger erp5-vifib erp5-vifib-cleanup erp5_catalog erp5_catalog_final erp5_corporate_identity erp5_hal_json_style_fix_restricted_access_with_traverse erp5_payslip_migration erp5testnode_max_timeout experiment/coding_style_test_suite feat/olapy feat/pdm_content_translation feat/zelenium_failures feature/accounting-reports-stats feature/hal-actions-support feature/hal-support-update feature/jio-accounting-reports feature/jio-action-accounting feature/jio-selection-actions feature/json-allows-all-jio-actions feature/renderjs-matrixbox feature/renderjs-ui-no-header feature/rjs-listbox-stats feature/rjs-mass-transition feature/rjs-print-action fix/consistency_check_alarm fix/login_validate_check_consistency fix/multiple_small_fixes_to_zodb_history_tab fix/support-request-app-empty for_testrunner_1 for_testrunner_2 for_testrunner_3 gadget-json-value hotfix/accounting-test-timeout hotfix/callable_tool hotfix/field-keeps-request hotfix/jio-mass-transition hotfix/jio_view hotfix/pdm-test hotfix/rjs-accounting-tests hotfix/rjs-editability hotfix/rjs-form-less-invasive hotfix/rjs-formfields-padding hotfix/rjs-listbox-mutex hotfix/rjs-replace-query-with-uids hotfix/tests-cleanup initsite isDeletable item_tracking_graph_editor jm/form-action-guard joblib-activity js-ui keep_order_in_set_type_category_accessor kns listbox_url macros_fix maste_copy master_calendar_wip_patches master_calendar_wip_patches_extend_security master_no_guard_on_workflow_transition master_no_guard_on_workflow_transition_plus_calendar_wip_patchs mic_wind monitoring monitoring-graph no_longer_simulated_state officejs officejs_clean officejs_zip ojs_wip portal_callables portal_solver_process_security_configuration publish_recursiveReindexObject refactor/base_edit refactor/renderjs reindex_calendar_after_change_calendar_exception revert-38554dbe revert-6c89fe9b rewrite_test_21_AcquiredPortalType scalability-master scalability-roque scalability-roque-2 scalability-run-command sms_more_than_140_characters streaming_fix streaming_fix-0 taskdistribution-xmlrpc-binary testnode_software_link tmp/getInstalledBusinessTemplate_never_installed_bt tristan-merge valentin_translation_fix view-aggregated-amounts wip wsgi-gevent 0.4.59.1 0.4.59 test-ui test-rjsacc test-rjs renderjs-test erp5.util-0.4.58 erp5.util-0.4.57 erp5.util-0.4.56 erp5.util-0.4.55 erp5.util-0.4.54 erp5.util-0.4.53 erp5.util-0.4.52 erp5.util-0.4.49 erp5.util-0.4.46 erp5.util-0.4.44
No related merge requests found
......@@ -74,6 +74,11 @@ for builder_id in builder_id_list:\n
builder = getattr(delivery_tool, builder_id, None)\n
if builder is None:\n
continue\n
if portal.portal_activities.countMessage(\n
method_id=\'build\',\n
path=builder.getPath(), ):\n
continue\n
\n
delivery_portal_type = builder.getDeliveryPortalType()\n
serialization_tag = \'build:%s\' % delivery_portal_type\n
index_tag = \'index:%s\' % delivery_portal_type\n
......
......@@ -71,6 +71,11 @@ for builder_id in builder_id_list:\n
builder = getattr(delivery_tool, builder_id, None)\n
if builder is None:\n
continue\n
if portal.portal_activities.countMessage(\n
method_id=\'build\',\n
path=builder.getPath(), ):\n
continue\n
\n
delivery_portal_type = builder.getDeliveryPortalType()\n
serialization_tag = \'build:%s\' % delivery_portal_type\n
index_tag = \'index:%s\' % delivery_portal_type\n
......
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