Commit d9b8fe78 authored by Sean McGivern's avatar Sean McGivern

Add tags to queue selector attributes

Tags are sets of transient annotations for workers. We will change them
more frequently than other worker attributes, and will remove them
completely at times.

For instance, we want to tag workers that require disk I/O. Once no
workers require disk I/O, workers will no longer have the tag indicating
this, but we'll still support the general tags concept.
parent 14822a68
......@@ -10,6 +10,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: authorized_project_update:authorized_project_update_user_refresh_with_low_urgency
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -17,6 +18,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: auto_devops:auto_devops_disable
:feature_category: :auto_devops
:has_external_dependencies:
......@@ -24,6 +26,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: auto_merge:auto_merge_process
:feature_category: :continuous_delivery
:has_external_dependencies:
......@@ -31,6 +34,7 @@
:resource_boundary: :cpu
:weight: 3
:idempotent:
:tags: []
- :name: chaos:chaos_cpu_spin
:feature_category: :not_owned
:has_external_dependencies:
......@@ -38,6 +42,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: chaos:chaos_db_spin
:feature_category: :not_owned
:has_external_dependencies:
......@@ -45,6 +50,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: chaos:chaos_kill
:feature_category: :not_owned
:has_external_dependencies:
......@@ -52,6 +58,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: chaos:chaos_leak_mem
:feature_category: :not_owned
:has_external_dependencies:
......@@ -59,6 +66,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: chaos:chaos_sleep
:feature_category: :not_owned
:has_external_dependencies:
......@@ -66,6 +74,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: container_repository:cleanup_container_repository
:feature_category: :container_registry
:has_external_dependencies:
......@@ -73,6 +82,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: container_repository:delete_container_repository
:feature_category: :container_registry
:has_external_dependencies:
......@@ -80,6 +90,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:admin_email
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -87,6 +98,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:ci_archive_traces_cron
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -94,6 +106,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:container_expiration_policy
:feature_category: :container_registry
:has_external_dependencies:
......@@ -101,6 +114,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:environments_auto_stop_cron
:feature_category: :continuous_delivery
:has_external_dependencies:
......@@ -108,6 +122,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:expire_build_artifacts
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -115,6 +130,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:gitlab_usage_ping
:feature_category: :collection
:has_external_dependencies:
......@@ -122,6 +138,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:import_export_project_cleanup
:feature_category: :importers
:has_external_dependencies:
......@@ -129,6 +146,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:issue_due_scheduler
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -136,6 +154,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:namespaces_prune_aggregation_schedules
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -143,6 +162,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:pages_domain_removal_cron
:feature_category: :pages
:has_external_dependencies:
......@@ -150,6 +170,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:pages_domain_ssl_renewal_cron
:feature_category: :pages
:has_external_dependencies:
......@@ -157,6 +178,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:pages_domain_verification_cron
:feature_category: :pages
:has_external_dependencies:
......@@ -164,6 +186,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:personal_access_tokens_expiring
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -171,6 +194,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:pipeline_schedule
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -178,6 +202,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:prune_old_events
:feature_category: :users
:has_external_dependencies:
......@@ -185,6 +210,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:prune_web_hook_logs
:feature_category: :integrations
:has_external_dependencies:
......@@ -192,6 +218,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:remove_expired_group_links
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -199,6 +226,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:remove_expired_members
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -206,6 +234,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:remove_unreferenced_lfs_objects
:feature_category: :git_lfs
:has_external_dependencies:
......@@ -213,6 +242,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:repository_archive_cache
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -220,6 +250,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:repository_check_dispatch
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -227,6 +258,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:requests_profiles
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -234,6 +266,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:schedule_migrate_external_diffs
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -241,6 +274,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:stuck_ci_jobs
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -248,6 +282,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:stuck_export_jobs
:feature_category: :importers
:has_external_dependencies:
......@@ -255,6 +290,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:stuck_import_jobs
:feature_category: :importers
:has_external_dependencies:
......@@ -262,6 +298,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:stuck_merge_jobs
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -269,6 +306,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:trending_projects
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -276,6 +314,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:users_create_statistics
:feature_category: :users
:has_external_dependencies:
......@@ -283,6 +322,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:x509_issuer_crl_check
:feature_category: :source_code_management
:has_external_dependencies: true
......@@ -290,6 +330,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: deployment:deployments_finished
:feature_category: :continuous_delivery
:has_external_dependencies:
......@@ -297,6 +338,7 @@
:resource_boundary: :cpu
:weight: 3
:idempotent:
:tags: []
- :name: deployment:deployments_forward_deployment
:feature_category: :continuous_delivery
:has_external_dependencies:
......@@ -304,6 +346,7 @@
:resource_boundary: :unknown
:weight: 3
:idempotent:
:tags: []
- :name: deployment:deployments_success
:feature_category: :continuous_delivery
:has_external_dependencies:
......@@ -311,6 +354,7 @@
:resource_boundary: :cpu
:weight: 3
:idempotent:
:tags: []
- :name: gcp_cluster:cluster_configure_istio
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -318,6 +362,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:cluster_install_app
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -325,6 +370,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:cluster_patch_app
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -332,6 +378,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:cluster_provision
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -339,6 +386,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:cluster_update_app
:feature_category: :kubernetes_management
:has_external_dependencies:
......@@ -346,6 +394,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:cluster_upgrade_app
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -353,6 +402,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:cluster_wait_for_app_installation
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -360,6 +410,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:cluster_wait_for_app_update
:feature_category: :kubernetes_management
:has_external_dependencies:
......@@ -367,6 +418,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:cluster_wait_for_ingress_ip_address
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -374,6 +426,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:clusters_applications_activate_service
:feature_category: :kubernetes_management
:has_external_dependencies:
......@@ -381,6 +434,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:clusters_applications_deactivate_service
:feature_category: :kubernetes_management
:has_external_dependencies:
......@@ -388,6 +442,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:clusters_applications_uninstall
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -395,6 +450,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:clusters_applications_wait_for_uninstall_app
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -402,6 +458,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:clusters_cleanup_app
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -409,6 +466,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:clusters_cleanup_project_namespace
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -416,6 +474,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:clusters_cleanup_service_account
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -423,6 +482,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gcp_cluster:wait_for_cluster_creation
:feature_category: :kubernetes_management
:has_external_dependencies: true
......@@ -430,6 +490,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_import_diff_note
:feature_category: :importers
:has_external_dependencies: true
......@@ -437,6 +498,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_import_issue
:feature_category: :importers
:has_external_dependencies: true
......@@ -444,6 +506,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_import_lfs_object
:feature_category: :importers
:has_external_dependencies: true
......@@ -451,6 +514,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_import_note
:feature_category: :importers
:has_external_dependencies: true
......@@ -458,6 +522,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_import_pull_request
:feature_category: :importers
:has_external_dependencies: true
......@@ -465,6 +530,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_refresh_import_jid
:feature_category: :importers
:has_external_dependencies:
......@@ -472,6 +538,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_stage_finish_import
:feature_category: :importers
:has_external_dependencies:
......@@ -479,6 +546,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_stage_import_base_data
:feature_category: :importers
:has_external_dependencies:
......@@ -486,6 +554,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_stage_import_issues_and_diff_notes
:feature_category: :importers
:has_external_dependencies:
......@@ -493,6 +562,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_stage_import_lfs_objects
:feature_category: :importers
:has_external_dependencies:
......@@ -500,6 +570,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_stage_import_notes
:feature_category: :importers
:has_external_dependencies:
......@@ -507,6 +578,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_stage_import_pull_requests
:feature_category: :importers
:has_external_dependencies:
......@@ -514,6 +586,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_importer:github_import_stage_import_repository
:feature_category: :importers
:has_external_dependencies:
......@@ -521,6 +594,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: hashed_storage:hashed_storage_migrator
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -528,6 +602,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: hashed_storage:hashed_storage_project_migrate
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -535,6 +610,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: hashed_storage:hashed_storage_project_rollback
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -542,6 +618,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: hashed_storage:hashed_storage_rollbacker
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -549,6 +626,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: incident_management:incident_management_process_alert
:feature_category: :incident_management
:has_external_dependencies:
......@@ -556,6 +634,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: incident_management:incident_management_process_prometheus_alert
:feature_category: :incident_management
:has_external_dependencies:
......@@ -563,6 +642,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: jira_importer:jira_import_advance_stage
:feature_category: :importers
:has_external_dependencies:
......@@ -570,6 +650,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: jira_importer:jira_import_import_issue
:feature_category: :importers
:has_external_dependencies:
......@@ -577,6 +658,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: jira_importer:jira_import_stage_finish_import
:feature_category: :importers
:has_external_dependencies:
......@@ -584,6 +666,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: jira_importer:jira_import_stage_import_attachments
:feature_category: :importers
:has_external_dependencies:
......@@ -591,6 +674,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: jira_importer:jira_import_stage_import_issues
:feature_category: :importers
:has_external_dependencies:
......@@ -598,6 +682,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: jira_importer:jira_import_stage_import_labels
:feature_category: :importers
:has_external_dependencies:
......@@ -605,6 +690,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: jira_importer:jira_import_stage_import_notes
:feature_category: :importers
:has_external_dependencies:
......@@ -612,6 +698,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: jira_importer:jira_import_stage_start_import
:feature_category: :importers
:has_external_dependencies:
......@@ -619,6 +706,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: mail_scheduler:mail_scheduler_issue_due
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -626,6 +714,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: mail_scheduler:mail_scheduler_notification_service
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -633,6 +722,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: notifications:new_release
:feature_category: :release_orchestration
:has_external_dependencies:
......@@ -640,6 +730,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: object_pool:object_pool_create
:feature_category: :gitaly
:has_external_dependencies:
......@@ -647,6 +738,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: object_pool:object_pool_destroy
:feature_category: :gitaly
:has_external_dependencies:
......@@ -654,6 +746,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: object_pool:object_pool_join
:feature_category: :gitaly
:has_external_dependencies:
......@@ -661,6 +754,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: object_pool:object_pool_schedule_join
:feature_category: :gitaly
:has_external_dependencies:
......@@ -668,6 +762,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: object_storage:object_storage_background_move
:feature_category: :not_owned
:has_external_dependencies:
......@@ -675,6 +770,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: object_storage:object_storage_migrate_uploads
:feature_category: :not_owned
:has_external_dependencies:
......@@ -682,6 +778,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: pipeline_background:archive_trace
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -689,6 +786,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: pipeline_background:ci_build_trace_chunk_flush
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -696,6 +794,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: pipeline_background:ci_daily_build_group_report_results
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -703,6 +802,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: pipeline_cache:expire_job_cache
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -710,6 +810,7 @@
:resource_boundary: :unknown
:weight: 3
:idempotent: true
:tags: []
- :name: pipeline_cache:expire_pipeline_cache
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -717,6 +818,7 @@
:resource_boundary: :cpu
:weight: 3
:idempotent: true
:tags: []
- :name: pipeline_creation:create_pipeline
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -724,6 +826,7 @@
:resource_boundary: :cpu
:weight: 4
:idempotent:
:tags: []
- :name: pipeline_creation:run_pipeline_schedule
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -731,6 +834,7 @@
:resource_boundary: :unknown
:weight: 4
:idempotent:
:tags: []
- :name: pipeline_default:build_coverage
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -738,6 +842,7 @@
:resource_boundary: :unknown
:weight: 3
:idempotent:
:tags: []
- :name: pipeline_default:build_trace_sections
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -745,6 +850,7 @@
:resource_boundary: :unknown
:weight: 3
:idempotent:
:tags: []
- :name: pipeline_default:ci_create_cross_project_pipeline
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -752,6 +858,7 @@
:resource_boundary: :cpu
:weight: 3
:idempotent:
:tags: []
- :name: pipeline_default:ci_pipeline_bridge_status
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -759,6 +866,7 @@
:resource_boundary: :cpu
:weight: 3
:idempotent:
:tags: []
- :name: pipeline_default:pipeline_metrics
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -766,6 +874,7 @@
:resource_boundary: :unknown
:weight: 3
:idempotent:
:tags: []
- :name: pipeline_default:pipeline_notification
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -773,6 +882,7 @@
:resource_boundary: :cpu
:weight: 3
:idempotent:
:tags: []
- :name: pipeline_default:pipeline_update_ci_ref_status
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -780,6 +890,7 @@
:resource_boundary: :cpu
:weight: 3
:idempotent:
:tags: []
- :name: pipeline_hooks:build_hooks
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -787,6 +898,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: pipeline_hooks:pipeline_hooks
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -794,6 +906,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: pipeline_processing:build_finished
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -801,6 +914,7 @@
:resource_boundary: :cpu
:weight: 5
:idempotent:
:tags: []
- :name: pipeline_processing:build_queue
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -808,6 +922,7 @@
:resource_boundary: :cpu
:weight: 5
:idempotent:
:tags: []
- :name: pipeline_processing:build_success
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -815,6 +930,7 @@
:resource_boundary: :unknown
:weight: 5
:idempotent:
:tags: []
- :name: pipeline_processing:ci_build_prepare
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -822,6 +938,7 @@
:resource_boundary: :unknown
:weight: 5
:idempotent:
:tags: []
- :name: pipeline_processing:ci_build_schedule
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -829,6 +946,7 @@
:resource_boundary: :cpu
:weight: 5
:idempotent:
:tags: []
- :name: pipeline_processing:ci_resource_groups_assign_resource_from_resource_group
:feature_category: :continuous_delivery
:has_external_dependencies:
......@@ -836,6 +954,7 @@
:resource_boundary: :unknown
:weight: 5
:idempotent:
:tags: []
- :name: pipeline_processing:pipeline_process
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -843,6 +962,7 @@
:resource_boundary: :unknown
:weight: 5
:idempotent:
:tags: []
- :name: pipeline_processing:pipeline_update
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -850,6 +970,7 @@
:resource_boundary: :unknown
:weight: 5
:idempotent:
:tags: []
- :name: pipeline_processing:stage_update
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -857,6 +978,7 @@
:resource_boundary: :unknown
:weight: 5
:idempotent: true
:tags: []
- :name: pipeline_processing:update_head_pipeline_for_merge_request
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -864,6 +986,7 @@
:resource_boundary: :cpu
:weight: 5
:idempotent: true
:tags: []
- :name: repository_check:repository_check_batch
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -871,6 +994,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: repository_check:repository_check_clear
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -878,6 +1002,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: repository_check:repository_check_single_repository
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -885,6 +1010,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: todos_destroyer:todos_destroyer_confidential_issue
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -892,6 +1018,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: todos_destroyer:todos_destroyer_entity_leave
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -899,6 +1026,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: todos_destroyer:todos_destroyer_group_private
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -906,6 +1034,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: todos_destroyer:todos_destroyer_private_features
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -913,6 +1042,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: todos_destroyer:todos_destroyer_project_private
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -920,6 +1050,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: update_namespace_statistics:namespaces_root_statistics
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -927,6 +1058,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: update_namespace_statistics:namespaces_schedule_aggregation
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -934,6 +1066,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: authorized_keys
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -941,6 +1074,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent: true
:tags: []
- :name: authorized_projects
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -948,6 +1082,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent: true
:tags: []
- :name: background_migration
:feature_category: :database
:has_external_dependencies:
......@@ -955,6 +1090,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: chat_notification
:feature_category: :chatops
:has_external_dependencies: true
......@@ -962,6 +1098,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: create_commit_signature
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -969,6 +1106,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent: true
:tags: []
- :name: create_evidence
:feature_category: :release_evidence
:has_external_dependencies:
......@@ -976,6 +1114,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: create_note_diff_file
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -983,6 +1122,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: default
:feature_category:
:has_external_dependencies:
......@@ -990,6 +1130,7 @@
:resource_boundary:
:weight: 1
:idempotent:
:tags: []
- :name: delete_diff_files
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -997,6 +1138,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: delete_merged_branches
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1004,6 +1146,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: delete_stored_files
:feature_category: :not_owned
:has_external_dependencies:
......@@ -1011,6 +1154,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: delete_user
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -1018,6 +1162,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: design_management_new_version
:feature_category: :design_management
:has_external_dependencies:
......@@ -1025,6 +1170,7 @@
:resource_boundary: :memory
:weight: 1
:idempotent:
:tags: []
- :name: detect_repository_languages
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1032,6 +1178,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: email_receiver
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -1039,6 +1186,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: emails_on_push
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1046,6 +1194,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: error_tracking_issue_link
:feature_category: :error_tracking
:has_external_dependencies: true
......@@ -1053,6 +1202,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: expire_build_instance_artifacts
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -1060,6 +1210,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: export_csv
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -1067,6 +1218,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: external_service_reactive_caching
:feature_category: :not_owned
:has_external_dependencies: true
......@@ -1074,6 +1226,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: file_hook
:feature_category: :integrations
:has_external_dependencies:
......@@ -1081,6 +1234,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: git_garbage_collect
:feature_category: :gitaly
:has_external_dependencies:
......@@ -1088,6 +1242,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: github_import_advance_stage
:feature_category: :importers
:has_external_dependencies:
......@@ -1095,6 +1250,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: gitlab_shell
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1102,6 +1258,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: group_destroy
:feature_category: :subgroups
:has_external_dependencies:
......@@ -1109,6 +1266,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: group_export
:feature_category: :importers
:has_external_dependencies:
......@@ -1116,6 +1274,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: group_import
:feature_category: :importers
:has_external_dependencies:
......@@ -1123,6 +1282,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: import_issues_csv
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -1130,6 +1290,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: invalid_gpg_signature_update
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1137,6 +1298,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: irker
:feature_category: :integrations
:has_external_dependencies:
......@@ -1144,6 +1306,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: mailers
:feature_category:
:has_external_dependencies:
......@@ -1151,6 +1314,7 @@
:resource_boundary:
:weight: 2
:idempotent:
:tags: []
- :name: merge
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1158,6 +1322,7 @@
:resource_boundary: :unknown
:weight: 5
:idempotent:
:tags: []
- :name: merge_request_mergeability_check
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1165,6 +1330,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: migrate_external_diffs
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1172,6 +1338,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: namespaceless_project_destroy
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -1179,6 +1346,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: new_issue
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -1186,6 +1354,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: new_merge_request
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1193,6 +1362,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: new_note
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -1200,6 +1370,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: pages
:feature_category: :pages
:has_external_dependencies:
......@@ -1207,6 +1378,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: pages_domain_ssl_renewal
:feature_category: :pages
:has_external_dependencies:
......@@ -1214,6 +1386,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: pages_domain_verification
:feature_category: :pages
:has_external_dependencies:
......@@ -1221,6 +1394,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: phabricator_import_import_tasks
:feature_category: :importers
:has_external_dependencies:
......@@ -1228,6 +1402,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: post_receive
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1235,6 +1410,7 @@
:resource_boundary: :cpu
:weight: 5
:idempotent:
:tags: []
- :name: process_commit
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1242,6 +1418,7 @@
:resource_boundary: :unknown
:weight: 3
:idempotent: true
:tags: []
- :name: project_cache
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1249,6 +1426,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: project_daily_statistics
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1256,6 +1434,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: project_destroy
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1263,6 +1442,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: project_export
:feature_category: :importers
:has_external_dependencies:
......@@ -1270,6 +1450,7 @@
:resource_boundary: :memory
:weight: 1
:idempotent:
:tags: []
- :name: project_service
:feature_category: :integrations
:has_external_dependencies: true
......@@ -1277,6 +1458,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: project_update_repository_storage
:feature_category: :gitaly
:has_external_dependencies:
......@@ -1284,6 +1466,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: prometheus_create_default_alerts
:feature_category: :incident_management
:has_external_dependencies:
......@@ -1291,6 +1474,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: propagate_integration
:feature_category: :integrations
:has_external_dependencies:
......@@ -1298,6 +1482,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: propagate_service_template
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1305,6 +1490,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: reactive_caching
:feature_category: :not_owned
:has_external_dependencies:
......@@ -1312,6 +1498,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: rebase
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1319,6 +1506,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: remote_mirror_notification
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1326,6 +1514,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: repository_cleanup
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1333,6 +1522,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: repository_fork
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1340,6 +1530,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: repository_import
:feature_category: :importers
:has_external_dependencies: true
......@@ -1347,6 +1538,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: repository_remove_remote
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1354,6 +1546,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: repository_update_remote_mirror
:feature_category: :source_code_management
:has_external_dependencies: true
......@@ -1361,6 +1554,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: self_monitoring_project_create
:feature_category: :metrics
:has_external_dependencies:
......@@ -1368,6 +1562,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: self_monitoring_project_delete
:feature_category: :metrics
:has_external_dependencies:
......@@ -1375,6 +1570,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: system_hook_push
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1382,6 +1578,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: update_external_pull_requests
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1389,6 +1586,7 @@
:resource_boundary: :unknown
:weight: 3
:idempotent:
:tags: []
- :name: update_highest_role
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -1396,6 +1594,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent: true
:tags: []
- :name: update_merge_requests
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1403,6 +1602,7 @@
:resource_boundary: :cpu
:weight: 3
:idempotent:
:tags: []
- :name: update_project_statistics
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1410,6 +1610,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: upload_checksum
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -1417,6 +1618,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: web_hook
:feature_category: :integrations
:has_external_dependencies: true
......@@ -1424,6 +1626,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: x509_certificate_revoke
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -1431,3 +1634,4 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
......@@ -111,6 +111,14 @@ module WorkerAttributes
1
end
def tags(*values)
worker_attributes[:tags] = values
end
def get_tags
Array(worker_attributes[:tags])
end
protected
# Returns a worker attribute declared on this class or its parent class.
......
---
title: Add tags to experimental queue selector attributes
merge_request: 32651
author:
type: added
......@@ -126,6 +126,8 @@ in a more general way using the following components:
### Available attributes
- [Introduced](https://gitlab.com/gitlab-com/gl-infra/scalability/-/issues/261) in GitLab 13.1, `tags`.
From the [list of all available
attributes](https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/workers/all_queues.yml),
`experimental_queue_selector` allows selecting of queues by the
......@@ -147,11 +149,18 @@ following attributes:
- `resource_boundary` - if the worker is bound by `cpu`, `memory`, or
`unknown`. For example, the `project_export` queue is memory bound as it has
to load data in memory before saving it for export.
- `tags` - short-lived annotations for workers. These are expected to frequently
change from release to release, and may be removed entirely.
`has_external_dependencies` is a boolean attribute: only the exact
string `true` is considered true, and everything else is considered
false.
`tags` is a set, which means that `=` checks for intersecting sets, and
`!=` checks for disjoint sets. For example, `tags=a,b` selects queues
that have tags `a`, `b`, or both. `tags!=a,b` selects queues that have
neither of those tags.
### Available operators
`experimental_queue_selector` supports the following operators, listed
......
......@@ -10,6 +10,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:adjourned_projects_deletion_cron
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -17,6 +18,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:clear_shared_runners_minutes
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -24,6 +26,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:elastic_index_bulk_cron
:feature_category: :global_search
:has_external_dependencies:
......@@ -31,6 +34,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: cronjob:geo_container_repository_sync_dispatch
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -38,6 +42,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_file_download_dispatch
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -45,6 +50,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_metrics_update
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -52,6 +58,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_migrated_local_files_clean_up
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -59,6 +66,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_prune_event_log
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -66,6 +74,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_repository_sync
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -73,6 +82,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_repository_verification_primary_batch
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -80,6 +90,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_repository_verification_secondary_scheduler
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -87,6 +98,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_repository_verification_secondary_shard
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -94,6 +106,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_scheduler_per_shard_scheduler
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -101,6 +114,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_scheduler_primary_per_shard_scheduler
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -108,6 +122,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_scheduler_secondary_per_shard_scheduler
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -115,6 +130,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_secondary_registry_consistency
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -122,6 +138,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:geo_sidekiq_cron_config
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -129,6 +146,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:historical_data
:feature_category: :license_compliance
:has_external_dependencies:
......@@ -136,6 +154,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:import_software_licenses
:feature_category: :license_compliance
:has_external_dependencies:
......@@ -143,6 +162,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:ldap_all_groups_sync
:feature_category: :authentication_and_authorization
:has_external_dependencies: true
......@@ -150,6 +170,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:ldap_sync
:feature_category: :authentication_and_authorization
:has_external_dependencies: true
......@@ -157,6 +178,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:pseudonymizer
:feature_category: :integrations
:has_external_dependencies:
......@@ -164,6 +186,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:sync_seat_link
:feature_category: :billing
:has_external_dependencies:
......@@ -171,6 +194,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:update_all_mirrors
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -178,6 +202,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: cronjob:update_max_seats_used_for_gitlab_com_subscriptions
:feature_category: :license_compliance
:has_external_dependencies:
......@@ -185,6 +210,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent:
:tags: []
- :name: dependency_proxy:purge_dependency_proxy_cache
:feature_category: :dependency_proxy
:has_external_dependencies:
......@@ -192,6 +218,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: epics:epics_update_epics_dates
:feature_category: :epics
:has_external_dependencies:
......@@ -199,6 +226,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: geo:geo_batch_project_registry
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -206,6 +234,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_batch_project_registry_scheduler
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -213,6 +242,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_blob_verification_primary
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -220,6 +250,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: geo:geo_container_repository_sync
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -227,6 +258,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_design_repository_shard_sync
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -234,6 +266,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_design_repository_sync
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -241,6 +274,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_event
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -248,6 +282,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_file_download
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -255,6 +290,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_file_registry_removal
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -262,6 +298,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_file_removal
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -269,6 +306,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_hashed_storage_attachments_migration
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -276,6 +314,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_hashed_storage_migration
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -283,6 +322,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_project_sync
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -290,6 +330,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_rename_repository
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -297,6 +338,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_repositories_clean_up
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -304,6 +346,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_repository_cleanup
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -311,6 +354,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_repository_destroy
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -318,6 +362,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_repository_shard_sync
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -325,6 +370,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_repository_verification_primary_shard
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -332,6 +378,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_repository_verification_primary_single
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -339,6 +386,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_repository_verification_secondary_single
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -346,6 +394,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_scheduler_primary_scheduler
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -353,6 +402,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_scheduler_scheduler
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -360,6 +410,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_scheduler_secondary_scheduler
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -367,6 +418,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: geo:geo_secondary_repository_backfill
:feature_category: :geo_replication
:has_external_dependencies:
......@@ -374,6 +426,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: jira_connect:jira_connect_sync_branch
:feature_category: :integrations
:has_external_dependencies:
......@@ -381,6 +434,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: jira_connect:jira_connect_sync_merge_request
:feature_category: :integrations
:has_external_dependencies:
......@@ -388,6 +442,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: package_repositories:packages_nuget_extraction
:feature_category: :package_registry
:has_external_dependencies:
......@@ -395,6 +450,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: personal_access_tokens:personal_access_tokens_groups_policy
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -402,6 +458,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: personal_access_tokens:personal_access_tokens_instance_policy
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -409,6 +466,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: pipeline_default:ci_trigger_downstream_subscriptions
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -416,6 +474,7 @@
:resource_boundary: :cpu
:weight: 3
:idempotent:
:tags: []
- :name: security_scans:store_security_reports
:feature_category: :static_application_security_testing
:has_external_dependencies:
......@@ -423,6 +482,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: security_scans:store_security_scans
:feature_category: :static_application_security_testing
:has_external_dependencies:
......@@ -430,6 +490,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: security_scans:sync_security_reports_to_report_approval_rules
:feature_category: :static_application_security_testing
:has_external_dependencies:
......@@ -437,6 +498,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: adjourned_project_deletion
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -444,6 +506,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: admin_emails
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -451,6 +514,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: analytics_code_review_metrics
:feature_category: :code_analytics
:has_external_dependencies:
......@@ -458,6 +522,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: ci_batch_reset_minutes
:feature_category: :continuous_integration
:has_external_dependencies:
......@@ -465,6 +530,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: create_github_webhook
:feature_category: :integrations
:has_external_dependencies: true
......@@ -472,6 +538,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: elastic_batch_project_indexer
:feature_category: :global_search
:has_external_dependencies:
......@@ -479,6 +546,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: elastic_commit_indexer
:feature_category: :global_search
:has_external_dependencies:
......@@ -486,6 +554,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: elastic_full_index
:feature_category: :global_search
:has_external_dependencies:
......@@ -493,6 +562,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: elastic_indexer
:feature_category: :global_search
:has_external_dependencies:
......@@ -500,6 +570,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: elastic_indexing_control
:feature_category: :global_search
:has_external_dependencies:
......@@ -507,6 +578,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: elastic_namespace_indexer
:feature_category: :global_search
:has_external_dependencies:
......@@ -514,6 +586,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: elastic_namespace_rollout
:feature_category: :global_search
:has_external_dependencies:
......@@ -521,6 +594,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: ldap_group_sync
:feature_category: :authentication_and_authorization
:has_external_dependencies: true
......@@ -528,6 +602,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: new_epic
:feature_category: :epics
:has_external_dependencies:
......@@ -535,6 +610,7 @@
:resource_boundary: :cpu
:weight: 2
:idempotent:
:tags: []
- :name: project_import_schedule
:feature_category: :importers
:has_external_dependencies:
......@@ -542,6 +618,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: refresh_license_compliance_checks
:feature_category: :license_compliance
:has_external_dependencies:
......@@ -549,6 +626,7 @@
:resource_boundary: :unknown
:weight: 2
:idempotent:
:tags: []
- :name: repository_push_audit_event
:feature_category: :authentication_and_authorization
:has_external_dependencies:
......@@ -556,6 +634,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: repository_update_mirror
:feature_category: :source_code_management
:has_external_dependencies:
......@@ -563,6 +642,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: service_desk_email_receiver
:feature_category: :issue_tracking
:has_external_dependencies:
......@@ -570,6 +650,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent:
:tags: []
- :name: status_page_publish
:feature_category: :status_page
:has_external_dependencies: true
......@@ -577,6 +658,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: sync_seat_link_request
:feature_category: :billing
:has_external_dependencies: true
......@@ -584,6 +666,7 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: vulnerability_exports_export
:feature_category: :vulnerability_management
:has_external_dependencies:
......@@ -591,6 +674,7 @@
:resource_boundary: :cpu
:weight: 1
:idempotent: true
:tags: []
- :name: vulnerability_exports_export_deletion
:feature_category: :vulnerability_management
:has_external_dependencies:
......@@ -598,3 +682,4 @@
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
......@@ -14,8 +14,8 @@ module Gitlab
].compact.freeze
DEFAULT_WORKERS = [
DummyWorker.new('default', weight: 1),
DummyWorker.new('mailers', weight: 2)
DummyWorker.new('default', weight: 1, tags: []),
DummyWorker.new('mailers', weight: 2, tags: [])
].map { |worker| Gitlab::SidekiqConfig::Worker.new(worker, ee: false) }.freeze
class << self
......
......@@ -28,6 +28,7 @@ module Gitlab
has_external_dependencies: lambda { |value| value == 'true' },
name: :to_s,
resource_boundary: :to_sym,
tags: :to_sym,
urgency: :to_sym
}.freeze
......@@ -117,7 +118,11 @@ module Gitlab
raise UnknownPredicate.new("Unknown predicate: #{lhs}") unless values_block
lambda { |queue| values.map(&values_block).include?(queue[lhs.to_sym]) }
lambda do |queue|
comparator = Array(queue[lhs.to_sym]).to_set
values.map(&values_block).to_set.intersect?(comparator)
end
end
end
end
......
......@@ -12,7 +12,8 @@ module Gitlab
urgency: :get_urgency,
resource_boundary: :get_worker_resource_boundary,
idempotent: :idempotent?,
weight: :get_weight
weight: :get_weight,
tags: :get_tags
}.freeze
def initialize(queue, attributes = {})
......
......@@ -6,7 +6,7 @@ module Gitlab
include Comparable
attr_reader :klass
delegate :feature_category_not_owned?, :get_feature_category,
delegate :feature_category_not_owned?, :get_feature_category, :get_tags,
:get_urgency, :get_weight, :get_worker_resource_boundary,
:idempotent?, :queue, :queue_namespace,
:worker_has_external_dependencies?,
......@@ -52,7 +52,8 @@ module Gitlab
urgency: get_urgency,
resource_boundary: get_worker_resource_boundary,
weight: get_weight,
idempotent: idempotent?
idempotent: idempotent?,
tags: get_tags
}
end
......
......@@ -117,28 +117,32 @@ describe Gitlab::SidekiqConfig::CliMethods do
feature_category: :category_a,
has_external_dependencies: false,
urgency: :low,
resource_boundary: :cpu
resource_boundary: :cpu,
tags: [:no_disk_io, :git_access]
},
{
name: 'a:2',
feature_category: :category_a,
has_external_dependencies: false,
urgency: :high,
resource_boundary: :none
resource_boundary: :none,
tags: [:git_access]
},
{
name: 'b',
feature_category: :category_b,
has_external_dependencies: true,
urgency: :high,
resource_boundary: :memory
resource_boundary: :memory,
tags: [:no_disk_io]
},
{
name: 'c',
feature_category: :category_c,
has_external_dependencies: false,
urgency: :throttled,
resource_boundary: :memory
resource_boundary: :memory,
tags: []
}
]
end
......@@ -177,6 +181,18 @@ describe Gitlab::SidekiqConfig::CliMethods do
'resource_boundary=memory|resource_boundary=cpu' | %w(a b c)
'resource_boundary!=memory,cpu' | %w(a:2)
# tags
'tags=no_disk_io' | %w(a b)
'tags=no_disk_io,git_access' | %w(a a:2 b)
'tags=no_disk_io|tags=git_access' | %w(a a:2 b)
'tags=no_disk_io&tags=git_access' | %w(a)
'tags!=no_disk_io' | %w(a:2 c)
'tags!=no_disk_io,git_access' | %w(c)
'tags=unknown_tag' | []
'tags!=no_disk_io' | %w(a:2 c)
'tags!=no_disk_io,git_access' | %w(c)
'tags!=unknown_tag' | %w(a a:2 b c)
# combinations
'feature_category=category_a&urgency=high' | %w(a:2)
'feature_category=category_a&urgency=high|feature_category=category_c' | %w(a:2 c)
......
......@@ -13,7 +13,8 @@ describe Gitlab::SidekiqConfig::Worker do
get_worker_resource_boundary: attributes[:resource_boundary],
get_urgency: attributes[:urgency],
worker_has_external_dependencies?: attributes[:has_external_dependencies],
idempotent?: attributes[:idempotent]
idempotent?: attributes[:idempotent],
get_tags: attributes[:tags]
)
described_class.new(inner_worker, ee: false)
......@@ -91,7 +92,8 @@ describe Gitlab::SidekiqConfig::Worker do
urgency: :low,
resource_boundary: :memory,
weight: 2,
idempotent: true
idempotent: true,
tags: []
}
attributes_b = {
......@@ -100,7 +102,8 @@ describe Gitlab::SidekiqConfig::Worker do
urgency: :high,
resource_boundary: :unknown,
weight: 3,
idempotent: false
idempotent: false,
tags: [:no_disk_io]
}
worker_a = create_worker(queue: 'a', **attributes_a)
......
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