Commit 74ea5a99 authored by Sean McGivern's avatar Sean McGivern

Rename latency_sensitive -> urgency

We have some queues that are not only not latency-sensitive, they have
no particular urgency at all. This means that we need more than a
boolean field, so this changes:

1. `latency_sensitive_worker!` to `urgency :high`.
2. The rest of the workers to `urgency :default` (when `urgency` is not
   set).

It allows for workers to be marked as `urgency :none` in future.
parent b7fa9dc4
...@@ -6,1267 +6,1267 @@ ...@@ -6,1267 +6,1267 @@
- :name: auto_devops:auto_devops_disable - :name: auto_devops:auto_devops_disable
:feature_category: :auto_devops :feature_category: :auto_devops
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: auto_merge:auto_merge_process - :name: auto_merge:auto_merge_process
:feature_category: :continuous_delivery :feature_category: :continuous_delivery
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: chaos:chaos_cpu_spin - :name: chaos:chaos_cpu_spin
:feature_category: :chaos_engineering :feature_category: :chaos_engineering
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: chaos:chaos_db_spin - :name: chaos:chaos_db_spin
:feature_category: :chaos_engineering :feature_category: :chaos_engineering
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: chaos:chaos_kill - :name: chaos:chaos_kill
:feature_category: :chaos_engineering :feature_category: :chaos_engineering
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: chaos:chaos_leak_mem - :name: chaos:chaos_leak_mem
:feature_category: :chaos_engineering :feature_category: :chaos_engineering
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: chaos:chaos_sleep - :name: chaos:chaos_sleep
:feature_category: :chaos_engineering :feature_category: :chaos_engineering
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: container_repository:cleanup_container_repository - :name: container_repository:cleanup_container_repository
:feature_category: :container_registry :feature_category: :container_registry
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: container_repository:delete_container_repository - :name: container_repository:delete_container_repository
:feature_category: :container_registry :feature_category: :container_registry
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:admin_email - :name: cronjob:admin_email
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:ci_archive_traces_cron - :name: cronjob:ci_archive_traces_cron
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:container_expiration_policy - :name: cronjob:container_expiration_policy
:feature_category: :container_registry :feature_category: :container_registry
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:environments_auto_stop_cron - :name: cronjob:environments_auto_stop_cron
:feature_category: :continuous_delivery :feature_category: :continuous_delivery
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:expire_build_artifacts - :name: cronjob:expire_build_artifacts
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:gitlab_usage_ping - :name: cronjob:gitlab_usage_ping
:feature_category: :collection :feature_category: :collection
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:import_export_project_cleanup - :name: cronjob:import_export_project_cleanup
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:issue_due_scheduler - :name: cronjob:issue_due_scheduler
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:namespaces_prune_aggregation_schedules - :name: cronjob:namespaces_prune_aggregation_schedules
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:pages_domain_removal_cron - :name: cronjob:pages_domain_removal_cron
:feature_category: :pages :feature_category: :pages
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:pages_domain_ssl_renewal_cron - :name: cronjob:pages_domain_ssl_renewal_cron
:feature_category: :pages :feature_category: :pages
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:pages_domain_verification_cron - :name: cronjob:pages_domain_verification_cron
:feature_category: :pages :feature_category: :pages
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:personal_access_tokens_expiring - :name: cronjob:personal_access_tokens_expiring
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:pipeline_schedule - :name: cronjob:pipeline_schedule
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:prune_old_events - :name: cronjob:prune_old_events
:feature_category: :users :feature_category: :users
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:prune_web_hook_logs - :name: cronjob:prune_web_hook_logs
:feature_category: :integrations :feature_category: :integrations
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:remove_expired_group_links - :name: cronjob:remove_expired_group_links
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:remove_expired_members - :name: cronjob:remove_expired_members
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:remove_unreferenced_lfs_objects - :name: cronjob:remove_unreferenced_lfs_objects
:feature_category: :git_lfs :feature_category: :git_lfs
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:repository_archive_cache - :name: cronjob:repository_archive_cache
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:repository_check_dispatch - :name: cronjob:repository_check_dispatch
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:requests_profiles - :name: cronjob:requests_profiles
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:schedule_migrate_external_diffs - :name: cronjob:schedule_migrate_external_diffs
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:stuck_ci_jobs - :name: cronjob:stuck_ci_jobs
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:stuck_import_jobs - :name: cronjob:stuck_import_jobs
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:stuck_merge_jobs - :name: cronjob:stuck_merge_jobs
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:trending_projects - :name: cronjob:trending_projects
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: deployment:deployments_finished - :name: deployment:deployments_finished
:feature_category: :continuous_delivery :feature_category: :continuous_delivery
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: deployment:deployments_forward_deployment - :name: deployment:deployments_forward_deployment
:feature_category: :continuous_delivery :feature_category: :continuous_delivery
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: deployment:deployments_success - :name: deployment:deployments_success
:feature_category: :continuous_delivery :feature_category: :continuous_delivery
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_configure - :name: gcp_cluster:cluster_configure
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_configure_istio - :name: gcp_cluster:cluster_configure_istio
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_install_app - :name: gcp_cluster:cluster_install_app
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_patch_app - :name: gcp_cluster:cluster_patch_app
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_project_configure - :name: gcp_cluster:cluster_project_configure
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_provision - :name: gcp_cluster:cluster_provision
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_upgrade_app - :name: gcp_cluster:cluster_upgrade_app
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_wait_for_app_installation - :name: gcp_cluster:cluster_wait_for_app_installation
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_wait_for_ingress_ip_address - :name: gcp_cluster:cluster_wait_for_ingress_ip_address
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:clusters_applications_activate_service - :name: gcp_cluster:clusters_applications_activate_service
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:clusters_applications_deactivate_service - :name: gcp_cluster:clusters_applications_deactivate_service
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:clusters_applications_uninstall - :name: gcp_cluster:clusters_applications_uninstall
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:clusters_applications_wait_for_uninstall_app - :name: gcp_cluster:clusters_applications_wait_for_uninstall_app
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:clusters_cleanup_app - :name: gcp_cluster:clusters_cleanup_app
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:clusters_cleanup_project_namespace - :name: gcp_cluster:clusters_cleanup_project_namespace
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:clusters_cleanup_service_account - :name: gcp_cluster:clusters_cleanup_service_account
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:wait_for_cluster_creation - :name: gcp_cluster:wait_for_cluster_creation
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_import_diff_note - :name: github_importer:github_import_import_diff_note
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_import_issue - :name: github_importer:github_import_import_issue
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_import_lfs_object - :name: github_importer:github_import_import_lfs_object
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_import_note - :name: github_importer:github_import_import_note
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_import_pull_request - :name: github_importer:github_import_import_pull_request
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_refresh_import_jid - :name: github_importer:github_import_refresh_import_jid
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_stage_finish_import - :name: github_importer:github_import_stage_finish_import
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_stage_import_base_data - :name: github_importer:github_import_stage_import_base_data
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_stage_import_issues_and_diff_notes - :name: github_importer:github_import_stage_import_issues_and_diff_notes
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_stage_import_lfs_objects - :name: github_importer:github_import_stage_import_lfs_objects
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_stage_import_notes - :name: github_importer:github_import_stage_import_notes
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_stage_import_pull_requests - :name: github_importer:github_import_stage_import_pull_requests
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_importer:github_import_stage_import_repository - :name: github_importer:github_import_stage_import_repository
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: hashed_storage:hashed_storage_migrator - :name: hashed_storage:hashed_storage_migrator
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: hashed_storage:hashed_storage_project_migrate - :name: hashed_storage:hashed_storage_project_migrate
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: hashed_storage:hashed_storage_project_rollback - :name: hashed_storage:hashed_storage_project_rollback
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: hashed_storage:hashed_storage_rollbacker - :name: hashed_storage:hashed_storage_rollbacker
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: incident_management:incident_management_process_alert - :name: incident_management:incident_management_process_alert
:feature_category: :incident_management :feature_category: :incident_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: mail_scheduler:mail_scheduler_issue_due - :name: mail_scheduler:mail_scheduler_issue_due
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: mail_scheduler:mail_scheduler_notification_service - :name: mail_scheduler:mail_scheduler_notification_service
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: notifications:new_release - :name: notifications:new_release
:feature_category: :release_orchestration :feature_category: :release_orchestration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: object_pool:object_pool_create - :name: object_pool:object_pool_create
:feature_category: :gitaly :feature_category: :gitaly
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: object_pool:object_pool_destroy - :name: object_pool:object_pool_destroy
:feature_category: :gitaly :feature_category: :gitaly
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: object_pool:object_pool_join - :name: object_pool:object_pool_join
:feature_category: :gitaly :feature_category: :gitaly
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: object_pool:object_pool_schedule_join - :name: object_pool:object_pool_schedule_join
:feature_category: :gitaly :feature_category: :gitaly
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: object_storage:object_storage_background_move - :name: object_storage:object_storage_background_move
:feature_category: :not_owned :feature_category: :not_owned
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: object_storage:object_storage_migrate_uploads - :name: object_storage:object_storage_migrate_uploads
:feature_category: :not_owned :feature_category: :not_owned
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: pipeline_background:archive_trace - :name: pipeline_background:archive_trace
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: pipeline_background:ci_build_trace_chunk_flush - :name: pipeline_background:ci_build_trace_chunk_flush
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: pipeline_cache:expire_job_cache - :name: pipeline_cache:expire_job_cache
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 3 :weight: 3
:idempotent: true :idempotent: true
- :name: pipeline_cache:expire_pipeline_cache - :name: pipeline_cache:expire_pipeline_cache
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: pipeline_creation:create_pipeline - :name: pipeline_creation:create_pipeline
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 4 :weight: 4
:idempotent: :idempotent:
- :name: pipeline_creation:run_pipeline_schedule - :name: pipeline_creation:run_pipeline_schedule
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 4 :weight: 4
:idempotent: :idempotent:
- :name: pipeline_default:build_coverage - :name: pipeline_default:build_coverage
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: pipeline_default:build_trace_sections - :name: pipeline_default:build_trace_sections
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: pipeline_default:ci_create_cross_project_pipeline - :name: pipeline_default:ci_create_cross_project_pipeline
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: pipeline_default:ci_pipeline_bridge_status - :name: pipeline_default:ci_pipeline_bridge_status
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: pipeline_default:pipeline_metrics - :name: pipeline_default:pipeline_metrics
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: pipeline_default:pipeline_notification - :name: pipeline_default:pipeline_notification
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: pipeline_default:pipeline_update_ci_ref_status - :name: pipeline_default:pipeline_update_ci_ref_status
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: pipeline_hooks:build_hooks - :name: pipeline_hooks:build_hooks
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: pipeline_hooks:pipeline_hooks - :name: pipeline_hooks:pipeline_hooks
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: pipeline_processing:build_finished - :name: pipeline_processing:build_finished
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: pipeline_processing:build_queue - :name: pipeline_processing:build_queue
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: pipeline_processing:build_success - :name: pipeline_processing:build_success
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: pipeline_processing:ci_build_prepare - :name: pipeline_processing:ci_build_prepare
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: pipeline_processing:ci_build_schedule - :name: pipeline_processing:ci_build_schedule
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: pipeline_processing:ci_resource_groups_assign_resource_from_resource_group - :name: pipeline_processing:ci_resource_groups_assign_resource_from_resource_group
:feature_category: :continuous_delivery :feature_category: :continuous_delivery
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: pipeline_processing:pipeline_process - :name: pipeline_processing:pipeline_process
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: pipeline_processing:pipeline_success - :name: pipeline_processing:pipeline_success
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: pipeline_processing:pipeline_update - :name: pipeline_processing:pipeline_update
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: pipeline_processing:stage_update - :name: pipeline_processing:stage_update
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: pipeline_processing:update_head_pipeline_for_merge_request - :name: pipeline_processing:update_head_pipeline_for_merge_request
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: repository_check:repository_check_batch - :name: repository_check:repository_check_batch
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: repository_check:repository_check_clear - :name: repository_check:repository_check_clear
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: repository_check:repository_check_single_repository - :name: repository_check:repository_check_single_repository
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: todos_destroyer:todos_destroyer_confidential_issue - :name: todos_destroyer:todos_destroyer_confidential_issue
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: todos_destroyer:todos_destroyer_entity_leave - :name: todos_destroyer:todos_destroyer_entity_leave
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: todos_destroyer:todos_destroyer_group_private - :name: todos_destroyer:todos_destroyer_group_private
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: todos_destroyer:todos_destroyer_private_features - :name: todos_destroyer:todos_destroyer_private_features
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: todos_destroyer:todos_destroyer_project_private - :name: todos_destroyer:todos_destroyer_project_private
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: update_namespace_statistics:namespaces_root_statistics - :name: update_namespace_statistics:namespaces_root_statistics
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: update_namespace_statistics:namespaces_schedule_aggregation - :name: update_namespace_statistics:namespaces_schedule_aggregation
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: authorized_projects - :name: authorized_projects
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: background_migration - :name: background_migration
:feature_category: :not_owned :feature_category: :not_owned
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: chat_notification - :name: chat_notification
:feature_category: :chatops :feature_category: :chatops
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: create_commit_signature - :name: create_commit_signature
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: create_evidence - :name: create_evidence
:feature_category: :release_governance :feature_category: :release_governance
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: create_note_diff_file - :name: create_note_diff_file
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: default - :name: default
:feature_category: :feature_category:
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency:
:resource_boundary: :resource_boundary:
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: delete_diff_files - :name: delete_diff_files
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: delete_merged_branches - :name: delete_merged_branches
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: delete_stored_files - :name: delete_stored_files
:feature_category: :not_owned :feature_category: :not_owned
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: delete_user - :name: delete_user
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: detect_repository_languages - :name: detect_repository_languages
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: email_receiver - :name: email_receiver
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: emails_on_push - :name: emails_on_push
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: error_tracking_issue_link - :name: error_tracking_issue_link
:feature_category: :error_tracking :feature_category: :error_tracking
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: expire_build_instance_artifacts - :name: expire_build_instance_artifacts
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: file_hook - :name: file_hook
:feature_category: :integrations :feature_category: :integrations
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: git_garbage_collect - :name: git_garbage_collect
:feature_category: :gitaly :feature_category: :gitaly
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: github_import_advance_stage - :name: github_import_advance_stage
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gitlab_shell - :name: gitlab_shell
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: group_destroy - :name: group_destroy
:feature_category: :subgroups :feature_category: :subgroups
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: group_export - :name: group_export
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: group_import - :name: group_import
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: import_issues_csv - :name: import_issues_csv
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: invalid_gpg_signature_update - :name: invalid_gpg_signature_update
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: irker - :name: irker
:feature_category: :integrations :feature_category: :integrations
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: mailers - :name: mailers
:feature_category: :feature_category:
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency:
:resource_boundary: :resource_boundary:
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: merge - :name: merge
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: merge_request_mergeability_check - :name: merge_request_mergeability_check
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: migrate_external_diffs - :name: migrate_external_diffs
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: namespaceless_project_destroy - :name: namespaceless_project_destroy
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: new_issue - :name: new_issue
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: new_merge_request - :name: new_merge_request
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: new_note - :name: new_note
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: pages - :name: pages
:feature_category: :pages :feature_category: :pages
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: pages_domain_ssl_renewal - :name: pages_domain_ssl_renewal
:feature_category: :pages :feature_category: :pages
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: pages_domain_verification - :name: pages_domain_verification
:feature_category: :pages :feature_category: :pages
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: phabricator_import_import_tasks - :name: phabricator_import_import_tasks
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: post_receive - :name: post_receive
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 5 :weight: 5
:idempotent: :idempotent:
- :name: process_commit - :name: process_commit
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: project_cache - :name: project_cache
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: project_daily_statistics - :name: project_daily_statistics
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: project_destroy - :name: project_destroy
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: project_export - :name: project_export
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :memory :resource_boundary: :memory
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: project_service - :name: project_service
:feature_category: :integrations :feature_category: :integrations
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: propagate_service_template - :name: propagate_service_template
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: reactive_caching - :name: reactive_caching
:feature_category: :not_owned :feature_category: :not_owned
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: rebase - :name: rebase
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: remote_mirror_notification - :name: remote_mirror_notification
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: repository_cleanup - :name: repository_cleanup
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: repository_fork - :name: repository_fork
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: repository_import - :name: repository_import
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: repository_remove_remote - :name: repository_remove_remote
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: repository_update_remote_mirror - :name: repository_update_remote_mirror
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: self_monitoring_project_create - :name: self_monitoring_project_create
:feature_category: :metrics :feature_category: :metrics
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: self_monitoring_project_delete - :name: self_monitoring_project_delete
:feature_category: :metrics :feature_category: :metrics
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: system_hook_push - :name: system_hook_push
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: update_external_pull_requests - :name: update_external_pull_requests
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: update_merge_requests - :name: update_merge_requests
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 3 :weight: 3
:idempotent: :idempotent:
- :name: update_project_statistics - :name: update_project_statistics
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: upload_checksum - :name: upload_checksum
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: web_hook - :name: web_hook
:feature_category: :integrations :feature_category: :integrations
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
...@@ -5,7 +5,7 @@ class AuthorizedProjectsWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class AuthorizedProjectsWorker # rubocop:disable Scalability/IdempotentWorker
prepend WaitableWorker prepend WaitableWorker
feature_category :authentication_and_authorization feature_category :authentication_and_authorization
latency_sensitive_worker! urgency :high
weight 2 weight 2
# This is a workaround for a Ruby 2.3.7 bug. rspec-mocks cannot restore the # This is a workaround for a Ruby 2.3.7 bug. rspec-mocks cannot restore the
......
...@@ -5,7 +5,7 @@ class BuildFinishedWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class BuildFinishedWorker # rubocop:disable Scalability/IdempotentWorker
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -6,7 +6,7 @@ class BuildHooksWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -6,7 +6,7 @@ class BuildHooksWorker # rubocop:disable Scalability/IdempotentWorker
queue_namespace :pipeline_hooks queue_namespace :pipeline_hooks
feature_category :continuous_integration feature_category :continuous_integration
latency_sensitive_worker! urgency :high
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def perform(build_id) def perform(build_id)
......
...@@ -6,7 +6,7 @@ class BuildQueueWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -6,7 +6,7 @@ class BuildQueueWorker # rubocop:disable Scalability/IdempotentWorker
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
feature_category :continuous_integration feature_category :continuous_integration
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -5,7 +5,7 @@ class BuildSuccessWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class BuildSuccessWorker # rubocop:disable Scalability/IdempotentWorker
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
latency_sensitive_worker! urgency :high
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def perform(build_id) def perform(build_id)
......
...@@ -7,7 +7,7 @@ class ChatNotificationWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -7,7 +7,7 @@ class ChatNotificationWorker # rubocop:disable Scalability/IdempotentWorker
sidekiq_options retry: false sidekiq_options retry: false
feature_category :chatops feature_category :chatops
latency_sensitive_worker! urgency :high
weight 2 weight 2
# TODO: break this into multiple jobs # TODO: break this into multiple jobs
......
...@@ -5,7 +5,7 @@ module Ci ...@@ -5,7 +5,7 @@ module Ci
include ::ApplicationWorker include ::ApplicationWorker
include ::PipelineQueue include ::PipelineQueue
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
def perform(pipeline_id) def perform(pipeline_id)
......
...@@ -4,9 +4,12 @@ module WorkerAttributes ...@@ -4,9 +4,12 @@ module WorkerAttributes
extend ActiveSupport::Concern extend ActiveSupport::Concern
# Resource boundaries that workers can declare through the # Resource boundaries that workers can declare through the
# `worker_resource_boundary` attribute # `resource_boundary` attribute
VALID_RESOURCE_BOUNDARIES = [:memory, :cpu, :unknown].freeze VALID_RESOURCE_BOUNDARIES = [:memory, :cpu, :unknown].freeze
# Urgencies that workers can declare through the `urgencies` attribute
VALID_URGENCIES = [:high, :default, :none].freeze
NAMESPACE_WEIGHTS = { NAMESPACE_WEIGHTS = {
auto_devops: 2, auto_devops: 2,
auto_merge: 3, auto_merge: 3,
...@@ -47,21 +50,22 @@ module WorkerAttributes ...@@ -47,21 +50,22 @@ module WorkerAttributes
get_worker_attribute(:feature_category) == :not_owned get_worker_attribute(:feature_category) == :not_owned
end end
# This should be set for jobs that need to be run immediately, or, if # This should be set to :high for jobs that need to be run
# they are delayed, risk creating inconsistencies in the application # immediately, or, if they are delayed, risk creating
# that could being perceived by the user as incorrect behavior # inconsistencies in the application that could being perceived by
# (ie, a bug) # the user as incorrect behavior (ie, a bug)
# See doc/development/sidekiq_style_guide.md#Latency-Sensitive-Jobs #
# See
# doc/development/sidekiq_style_guide.md#urgency
# for details # for details
def latency_sensitive_worker! def urgency(urgency)
worker_attributes[:latency_sensitive] = true raise "Invalid urgency: #{urgency}" unless VALID_URGENCIES.include?(urgency)
worker_attributes[:urgency] = urgency
end end
# Returns a truthy value if the worker is latency sensitive. def get_urgency
# See doc/development/sidekiq_style_guide.md#Latency-Sensitive-Jobs worker_attributes[:urgency] || :default
# for details
def latency_sensitive_worker?
worker_attributes[:latency_sensitive]
end end
# Set this attribute on a job when it will call to services outside of the # Set this attribute on a job when it will call to services outside of the
......
...@@ -6,7 +6,7 @@ class CreatePipelineWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -6,7 +6,7 @@ class CreatePipelineWorker # rubocop:disable Scalability/IdempotentWorker
queue_namespace :pipeline_creation queue_namespace :pipeline_creation
feature_category :continuous_integration feature_category :continuous_integration
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
def perform(project_id, user_id, ref, source, params = {}) def perform(project_id, user_id, ref, source, params = {})
......
...@@ -4,7 +4,7 @@ class EmailReceiverWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,7 +4,7 @@ class EmailReceiverWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
feature_category :issue_tracking feature_category :issue_tracking
latency_sensitive_worker! urgency :high
weight 2 weight 2
def perform(raw) def perform(raw)
......
...@@ -6,7 +6,7 @@ class EmailsOnPushWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -6,7 +6,7 @@ class EmailsOnPushWorker # rubocop:disable Scalability/IdempotentWorker
attr_reader :email, :skip_premailer attr_reader :email, :skip_premailer
feature_category :source_code_management feature_category :source_code_management
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
weight 2 weight 2
......
...@@ -5,7 +5,7 @@ class ExpireJobCacheWorker ...@@ -5,7 +5,7 @@ class ExpireJobCacheWorker
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_cache queue_namespace :pipeline_cache
latency_sensitive_worker! urgency :high
idempotent! idempotent!
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -5,7 +5,7 @@ class ExpirePipelineCacheWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class ExpirePipelineCacheWorker # rubocop:disable Scalability/IdempotentWorker
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_cache queue_namespace :pipeline_cache
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -5,7 +5,7 @@ class GitlabShellWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class GitlabShellWorker # rubocop:disable Scalability/IdempotentWorker
include Gitlab::ShellAdapter include Gitlab::ShellAdapter
feature_category :source_code_management feature_category :source_code_management
latency_sensitive_worker! urgency :high
weight 2 weight 2
def perform(action, *arg) def perform(action, *arg)
......
...@@ -4,7 +4,7 @@ class MergeWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,7 +4,7 @@ class MergeWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
feature_category :source_code_management feature_category :source_code_management
latency_sensitive_worker! urgency :high
weight 5 weight 5
def perform(merge_request_id, current_user_id, params) def perform(merge_request_id, current_user_id, params)
......
...@@ -5,7 +5,7 @@ class NewIssueWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class NewIssueWorker # rubocop:disable Scalability/IdempotentWorker
include NewIssuable include NewIssuable
feature_category :issue_tracking feature_category :issue_tracking
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
weight 2 weight 2
......
...@@ -5,7 +5,7 @@ class NewMergeRequestWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class NewMergeRequestWorker # rubocop:disable Scalability/IdempotentWorker
include NewIssuable include NewIssuable
feature_category :source_code_management feature_category :source_code_management
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
weight 2 weight 2
......
...@@ -4,7 +4,7 @@ class NewNoteWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,7 +4,7 @@ class NewNoteWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
feature_category :issue_tracking feature_category :issue_tracking
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
weight 2 weight 2
......
...@@ -5,7 +5,7 @@ class PipelineHooksWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class PipelineHooksWorker # rubocop:disable Scalability/IdempotentWorker
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_hooks queue_namespace :pipeline_hooks
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -4,7 +4,7 @@ class PipelineMetricsWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,7 +4,7 @@ class PipelineMetricsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
include PipelineQueue include PipelineQueue
latency_sensitive_worker! urgency :high
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def perform(pipeline_id) def perform(pipeline_id)
......
...@@ -4,7 +4,7 @@ class PipelineNotificationWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,7 +4,7 @@ class PipelineNotificationWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
include PipelineQueue include PipelineQueue
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -6,7 +6,7 @@ class PipelineProcessWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -6,7 +6,7 @@ class PipelineProcessWorker # rubocop:disable Scalability/IdempotentWorker
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
feature_category :continuous_integration feature_category :continuous_integration
latency_sensitive_worker! urgency :high
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def perform(pipeline_id, build_ids = nil) def perform(pipeline_id, build_ids = nil)
......
...@@ -5,7 +5,7 @@ class PipelineSuccessWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class PipelineSuccessWorker # rubocop:disable Scalability/IdempotentWorker
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
latency_sensitive_worker! urgency :high
def perform(pipeline_id) def perform(pipeline_id)
# no-op # no-op
......
...@@ -4,7 +4,7 @@ class PipelineUpdateCiRefStatusWorker # rubocop:disable Scalability/IdempotentWo ...@@ -4,7 +4,7 @@ class PipelineUpdateCiRefStatusWorker # rubocop:disable Scalability/IdempotentWo
include ApplicationWorker include ApplicationWorker
include PipelineQueue include PipelineQueue
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
def perform(pipeline_id) def perform(pipeline_id)
......
...@@ -5,7 +5,7 @@ class PipelineUpdateWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class PipelineUpdateWorker # rubocop:disable Scalability/IdempotentWorker
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
latency_sensitive_worker! urgency :high
def perform(pipeline_id) def perform(pipeline_id)
Ci::Pipeline.find_by_id(pipeline_id)&.update_legacy_status Ci::Pipeline.find_by_id(pipeline_id)&.update_legacy_status
......
...@@ -4,7 +4,7 @@ class PostReceive # rubocop:disable Scalability/IdempotentWorker ...@@ -4,7 +4,7 @@ class PostReceive # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
feature_category :source_code_management feature_category :source_code_management
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
weight 5 weight 5
......
...@@ -11,7 +11,7 @@ class ProcessCommitWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -11,7 +11,7 @@ class ProcessCommitWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
feature_category :source_code_management feature_category :source_code_management
latency_sensitive_worker! urgency :high
weight 3 weight 3
# project_id - The ID of the project this commit belongs to. # project_id - The ID of the project this commit belongs to.
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
class ProjectCacheWorker # rubocop:disable Scalability/IdempotentWorker class ProjectCacheWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
latency_sensitive_worker! urgency :high
LEASE_TIMEOUT = 15.minutes.to_i LEASE_TIMEOUT = 15.minutes.to_i
......
...@@ -6,11 +6,11 @@ class ReactiveCachingWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -6,11 +6,11 @@ class ReactiveCachingWorker # rubocop:disable Scalability/IdempotentWorker
feature_category_not_owned! feature_category_not_owned!
# TODO: The reactive caching worker should be split into # TODO: The reactive caching worker should be split into
# two different workers, one for latency_sensitive jobs without external dependencies # two different workers, one for high urgency jobs without external dependencies
# and another worker without latency_sensitivity, but with external dependencies # and another worker without high urgency, but with external dependencies
# https://gitlab.com/gitlab-com/gl-infra/scalability/issues/34 # https://gitlab.com/gitlab-com/gl-infra/scalability/issues/34
# This worker should also have `worker_has_external_dependencies!` enabled # This worker should also have `worker_has_external_dependencies!` enabled
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
def perform(class_name, id, *args) def perform(class_name, id, *args)
......
...@@ -5,7 +5,7 @@ class StageUpdateWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -5,7 +5,7 @@ class StageUpdateWorker # rubocop:disable Scalability/IdempotentWorker
include PipelineQueue include PipelineQueue
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
latency_sensitive_worker! urgency :high
def perform(stage_id) def perform(stage_id)
Ci::Stage.find_by_id(stage_id)&.update_legacy_status Ci::Stage.find_by_id(stage_id)&.update_legacy_status
......
...@@ -6,7 +6,7 @@ class UpdateHeadPipelineForMergeRequestWorker # rubocop:disable Scalability/Idem ...@@ -6,7 +6,7 @@ class UpdateHeadPipelineForMergeRequestWorker # rubocop:disable Scalability/Idem
queue_namespace :pipeline_processing queue_namespace :pipeline_processing
feature_category :continuous_integration feature_category :continuous_integration
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
def perform(merge_request_id) def perform(merge_request_id)
......
...@@ -4,7 +4,7 @@ class UpdateMergeRequestsWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,7 +4,7 @@ class UpdateMergeRequestsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
feature_category :source_code_management feature_category :source_code_management
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
weight 3 weight 3
......
...@@ -115,10 +115,10 @@ following attributes: ...@@ -115,10 +115,10 @@ following attributes:
`source_code_management` category. `source_code_management` category.
- `has_external_dependencies` - whether or not the queue connects to external - `has_external_dependencies` - whether or not the queue connects to external
services. For example, all importers have this set to `true`. services. For example, all importers have this set to `true`.
- `latency_sensitive` - whether or not the queue is particularly sensitive to - `urgency` - how important it is that this queue's jobs run
latency, which also means that its jobs should run quickly. For example, the quickly. Can be `high`, `default`, or `none`. For example, the
`authorized_projects` queue is used to refresh user permissions, and is `authorized_projects` queue is used to refresh user permissions, and
latency sensitive. is high urgency.
- `name` - the queue name. The other attributes are typically more useful as - `name` - the queue name. The other attributes are typically more useful as
they are more general, but this is available in case a particular queue needs they are more general, but this is available in case a particular queue needs
to be selected. to be selected.
...@@ -126,9 +126,9 @@ following attributes: ...@@ -126,9 +126,9 @@ following attributes:
`unknown`. For example, the `project_export` queue is memory bound as it has `unknown`. For example, the `project_export` queue is memory bound as it has
to load data in memory before saving it for export. to load data in memory before saving it for export.
Both `has_external_dependencies` and `latency_sensitive` are boolean attributes: `has_external_dependencies` is a boolean attribute: only the exact
only the exact string `true` is considered true, and everything else is string `true` is considered true, and everything else is considered
considered false. false.
### Available operators ### Available operators
...@@ -162,10 +162,10 @@ In `/etc/gitlab/gitlab.rb`: ...@@ -162,10 +162,10 @@ In `/etc/gitlab/gitlab.rb`:
sidekiq_cluster['enable'] = true sidekiq_cluster['enable'] = true
sidekiq_cluster['experimental_queue_selector'] = true sidekiq_cluster['experimental_queue_selector'] = true
sidekiq_cluster['queue_groups'] = [ sidekiq_cluster['queue_groups'] = [
# Run all non-CPU-bound queues that are latency sensitive # Run all non-CPU-bound queues that are high urgency
'resource_boundary!=cpu&latency_sensitive=true', 'resource_boundary!=cpu&urgency=high,
# Run all continuous integration and pages queues that are not latency sensitive # Run all continuous integration and pages queues that are not high urgency
'feature_category=continuous_integration,pages&latency_sensitive=false' 'feature_category=continuous_integration,pages&urgency!=high
] ]
``` ```
......
...@@ -121,7 +121,30 @@ NOTE: **Note:** ...@@ -121,7 +121,30 @@ NOTE: **Note:**
Note that a cop will fail if the worker class is not marked as idempotent. Note that a cop will fail if the worker class is not marked as idempotent.
Consider skipping the cop if you're not confident your job can safely run multiple times. Consider skipping the cop if you're not confident your job can safely run multiple times.
## Latency Sensitive Jobs ## Job urgency
Jobs can have an `urgency` attribute set, which can be `:high`,
`:default`, or `:none`. These have the below targets:
| **Urgency** | **Queue Scheduling Target** | **Execution Latency Requirement** |
|-------------|-----------------------------|------------------------------------|
| `:high` | 100 milliseconds | p50 of 1 second, p99 of 10 seconds |
| `:default` | 1 minute | Maximum run time of 1 hour |
| `:none` | None | Maximum run time of 1 hour |
To set a job's urgency, use the `urgency` class method:
```ruby
class HighUrgencyWorker
include ApplicationWorker
urgency :high
# ...
end
```
### Latency sensitive jobs
If a large number of background jobs get scheduled at once, queueing of jobs may If a large number of background jobs get scheduled at once, queueing of jobs may
occur while jobs wait for a worker node to be become available. This is normal occur while jobs wait for a worker node to be become available. This is normal
...@@ -140,7 +163,7 @@ of these jobs include: ...@@ -140,7 +163,7 @@ of these jobs include:
When these jobs are delayed, the user may perceive the delay as a bug: for When these jobs are delayed, the user may perceive the delay as a bug: for
example, they may push a branch and then attempt to create a merge request for example, they may push a branch and then attempt to create a merge request for
that branch, but be told in the UI that the branch does not exist. We deem these that branch, but be told in the UI that the branch does not exist. We deem these
jobs to be `latency_sensitive`. jobs to be `urgency :high`.
Extra effort is made to ensure that these jobs are started within a very short Extra effort is made to ensure that these jobs are started within a very short
period of time after being scheduled. However, in order to ensure throughput, period of time after being scheduled. However, in order to ensure throughput,
...@@ -150,31 +173,11 @@ these jobs also have very strict execution duration requirements: ...@@ -150,31 +173,11 @@ these jobs also have very strict execution duration requirements:
1. 99% of jobs should complete within 10 seconds. 1. 99% of jobs should complete within 10 seconds.
If a worker cannot meet these expectations, then it cannot be treated as a If a worker cannot meet these expectations, then it cannot be treated as a
`latency_sensitive` worker: consider redesigning the worker, or splitting the `urgency :high` worker: consider redesigning the worker, or splitting the
work between two different workers, one with `latency_sensitive` code that work between two different workers, one with `urgency :high` code that
executes quickly, and the other with non-`latency_sensitive`, which has no executes quickly, and the other with `urgency :default`, which has no
execution latency requirements (but also has lower scheduling targets). execution latency requirements (but also has lower scheduling targets).
This can be summed up in the following table:
| **Latency Sensitivity** | **Queue Scheduling Target** | **Execution Latency Requirement** |
|-------------------------|-----------------------------|-------------------------------------|
| Not `latency_sensitive` | 1 minute | Maximum run time of 1 hour |
| `latency_sensitive` | 100 milliseconds | p50 of 1 second, p99 of 10 seconds |
To mark a worker as being `latency_sensitive`, use the
`latency_sensitive_worker!` attribute, as shown in this example:
```ruby
class LatencySensitiveWorker
include ApplicationWorker
latency_sensitive_worker!
# ...
end
```
## Jobs with External Dependencies ## Jobs with External Dependencies
Most background jobs in the GitLab application communicate with other GitLab Most background jobs in the GitLab application communicate with other GitLab
...@@ -194,7 +197,7 @@ the background processing cluster in several ways: ...@@ -194,7 +197,7 @@ the background processing cluster in several ways:
therefore we cannot guarantee the execution latencies on these jobs. Since we therefore we cannot guarantee the execution latencies on these jobs. Since we
cannot guarantee execution latency, we cannot ensure throughput and cannot guarantee execution latency, we cannot ensure throughput and
therefore, in high-traffic environments, we need to ensure that jobs with therefore, in high-traffic environments, we need to ensure that jobs with
external dependencies are separated from `latency_sensitive` jobs, to ensure external dependencies are separated from high urgency jobs, to ensure
throughput on those queues. throughput on those queues.
1. Errors in jobs with external dependencies have higher alerting thresholds as 1. Errors in jobs with external dependencies have higher alerting thresholds as
there is a likelihood that the cause of the error is external. there is a likelihood that the cause of the error is external.
...@@ -212,7 +215,7 @@ class ExternalDependencyWorker ...@@ -212,7 +215,7 @@ class ExternalDependencyWorker
end end
``` ```
NOTE: **Note:** Note that a job cannot be both latency sensitive and have NOTE: **Note:** Note that a job cannot be both high urgency and have
external dependencies. external dependencies.
## CPU-bound and Memory-bound Workers ## CPU-bound and Memory-bound Workers
...@@ -246,14 +249,14 @@ bespoke low concurrency, high memory fleet. ...@@ -246,14 +249,14 @@ bespoke low concurrency, high memory fleet.
Note that memory-bound workers create heavy GC workloads, with pauses of Note that memory-bound workers create heavy GC workloads, with pauses of
10-50ms. This will have an impact on the latency requirements for the 10-50ms. This will have an impact on the latency requirements for the
worker. For this reason, `memory` bound, `latency_sensitive` jobs are not worker. For this reason, `memory` bound, `urgency :high` jobs are not
permitted and will fail CI. In general, `memory` bound workers are permitted and will fail CI. In general, `memory` bound workers are
discouraged, and alternative approaches to processing the work should be discouraged, and alternative approaches to processing the work should be
considered. considered.
If a worker needs large amounts of both memory and CPU time, it should be marked as If a worker needs large amounts of both memory and CPU time, it should
memory-bound, due to the above restrction on latency-sensitive memory-bound be marked as memory-bound, due to the above restrction on high urgency
workers. memory-bound workers.
## Declaring a Job as CPU-bound ## Declaring a Job as CPU-bound
......
...@@ -6,560 +6,560 @@ ...@@ -6,560 +6,560 @@
- :name: cronjob:adjourned_group_deletion - :name: cronjob:adjourned_group_deletion
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:adjourned_projects_deletion_cron - :name: cronjob:adjourned_projects_deletion_cron
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:clear_shared_runners_minutes - :name: cronjob:clear_shared_runners_minutes
:feature_category: :continuous_integration :feature_category: :continuous_integration
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:elastic_index_bulk_cron - :name: cronjob:elastic_index_bulk_cron
:feature_category: :search :feature_category: :search
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: true :idempotent: true
- :name: cronjob:geo_container_repository_sync_dispatch - :name: cronjob:geo_container_repository_sync_dispatch
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_file_download_dispatch - :name: cronjob:geo_file_download_dispatch
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_metrics_update - :name: cronjob:geo_metrics_update
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_migrated_local_files_clean_up - :name: cronjob:geo_migrated_local_files_clean_up
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_prune_event_log - :name: cronjob:geo_prune_event_log
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_repository_sync - :name: cronjob:geo_repository_sync
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_repository_verification_primary_batch - :name: cronjob:geo_repository_verification_primary_batch
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_repository_verification_secondary_scheduler - :name: cronjob:geo_repository_verification_secondary_scheduler
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_repository_verification_secondary_shard - :name: cronjob:geo_repository_verification_secondary_shard
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_scheduler_per_shard_scheduler - :name: cronjob:geo_scheduler_per_shard_scheduler
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_scheduler_primary_per_shard_scheduler - :name: cronjob:geo_scheduler_primary_per_shard_scheduler
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_scheduler_secondary_per_shard_scheduler - :name: cronjob:geo_scheduler_secondary_per_shard_scheduler
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_secondary_registry_consistency - :name: cronjob:geo_secondary_registry_consistency
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:geo_sidekiq_cron_config - :name: cronjob:geo_sidekiq_cron_config
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:historical_data - :name: cronjob:historical_data
:feature_category: :license_compliance :feature_category: :license_compliance
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:import_software_licenses - :name: cronjob:import_software_licenses
:feature_category: :license_compliance :feature_category: :license_compliance
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:ldap_all_groups_sync - :name: cronjob:ldap_all_groups_sync
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:ldap_sync - :name: cronjob:ldap_sync
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:pseudonymizer - :name: cronjob:pseudonymizer
:feature_category: :integrations :feature_category: :integrations
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:update_all_mirrors - :name: cronjob:update_all_mirrors
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: cronjob:update_max_seats_used_for_gitlab_com_subscriptions - :name: cronjob:update_max_seats_used_for_gitlab_com_subscriptions
:feature_category: :license_compliance :feature_category: :license_compliance
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: epics:epics_update_epics_dates - :name: epics:epics_update_epics_dates
:feature_category: :epics :feature_category: :epics
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_update_app - :name: gcp_cluster:cluster_update_app
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: gcp_cluster:cluster_wait_for_app_update - :name: gcp_cluster:cluster_wait_for_app_update
:feature_category: :kubernetes_management :feature_category: :kubernetes_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_batch_project_registry - :name: geo:geo_batch_project_registry
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_batch_project_registry_scheduler - :name: geo:geo_batch_project_registry_scheduler
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_container_repository_sync - :name: geo:geo_container_repository_sync
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_design_repository_shard_sync - :name: geo:geo_design_repository_shard_sync
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_design_repository_sync - :name: geo:geo_design_repository_sync
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_event - :name: geo:geo_event
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_file_download - :name: geo:geo_file_download
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_file_registry_removal - :name: geo:geo_file_registry_removal
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_file_removal - :name: geo:geo_file_removal
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_hashed_storage_attachments_migration - :name: geo:geo_hashed_storage_attachments_migration
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_hashed_storage_migration - :name: geo:geo_hashed_storage_migration
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_project_sync - :name: geo:geo_project_sync
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_rename_repository - :name: geo:geo_rename_repository
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_repositories_clean_up - :name: geo:geo_repositories_clean_up
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_repository_cleanup - :name: geo:geo_repository_cleanup
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_repository_destroy - :name: geo:geo_repository_destroy
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_repository_shard_sync - :name: geo:geo_repository_shard_sync
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_repository_verification_primary_shard - :name: geo:geo_repository_verification_primary_shard
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_repository_verification_primary_single - :name: geo:geo_repository_verification_primary_single
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_repository_verification_secondary_single - :name: geo:geo_repository_verification_secondary_single
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_scheduler_primary_scheduler - :name: geo:geo_scheduler_primary_scheduler
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_scheduler_scheduler - :name: geo:geo_scheduler_scheduler
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_scheduler_secondary_scheduler - :name: geo:geo_scheduler_secondary_scheduler
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: geo:geo_secondary_repository_backfill - :name: geo:geo_secondary_repository_backfill
:feature_category: :geo_replication :feature_category: :geo_replication
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: incident_management:incident_management_process_prometheus_alert - :name: incident_management:incident_management_process_prometheus_alert
:feature_category: :incident_management :feature_category: :incident_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: jira_connect:jira_connect_sync_branch - :name: jira_connect:jira_connect_sync_branch
:feature_category: :integrations :feature_category: :integrations
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: jira_connect:jira_connect_sync_merge_request - :name: jira_connect:jira_connect_sync_merge_request
:feature_category: :integrations :feature_category: :integrations
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: package_repositories:packages_nuget_extraction - :name: package_repositories:packages_nuget_extraction
:feature_category: :package_registry :feature_category: :package_registry
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: personal_access_tokens:personal_access_tokens_policy - :name: personal_access_tokens:personal_access_tokens_policy
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: security_scans:store_security_reports - :name: security_scans:store_security_reports
:feature_category: :static_application_security_testing :feature_category: :static_application_security_testing
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: security_scans:store_security_scans - :name: security_scans:store_security_scans
:feature_category: :static_application_security_testing :feature_category: :static_application_security_testing
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: security_scans:sync_security_reports_to_report_approval_rules - :name: security_scans:sync_security_reports_to_report_approval_rules
:feature_category: :static_application_security_testing :feature_category: :static_application_security_testing
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: true :urgency: :high
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: adjourned_project_deletion - :name: adjourned_project_deletion
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: admin_emails - :name: admin_emails
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: analytics_code_review_metrics - :name: analytics_code_review_metrics
:feature_category: :code_analytics :feature_category: :code_analytics
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: true :idempotent: true
- :name: create_github_webhook - :name: create_github_webhook
:feature_category: :integrations :feature_category: :integrations
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: design_management_new_version - :name: design_management_new_version
:feature_category: :design_management :feature_category: :design_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :memory :resource_boundary: :memory
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: elastic_batch_project_indexer - :name: elastic_batch_project_indexer
:feature_category: :search :feature_category: :search
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: elastic_commit_indexer - :name: elastic_commit_indexer
:feature_category: :search :feature_category: :search
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: elastic_full_index - :name: elastic_full_index
:feature_category: :search :feature_category: :search
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: elastic_indexer - :name: elastic_indexer
:feature_category: :search :feature_category: :search
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: elastic_namespace_indexer - :name: elastic_namespace_indexer
:feature_category: :search :feature_category: :search
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: elastic_namespace_rollout - :name: elastic_namespace_rollout
:feature_category: :search :feature_category: :search
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: export_csv - :name: export_csv
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: ldap_group_sync - :name: ldap_group_sync
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: true :has_external_dependencies: true
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: new_epic - :name: new_epic
:feature_category: :epics :feature_category: :epics
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :cpu :resource_boundary: :cpu
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: project_import_schedule - :name: project_import_schedule
:feature_category: :importers :feature_category: :importers
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: project_update_repository_storage - :name: project_update_repository_storage
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: refresh_license_compliance_checks - :name: refresh_license_compliance_checks
:feature_category: :license_compliance :feature_category: :license_compliance
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 2 :weight: 2
:idempotent: :idempotent:
- :name: repository_push_audit_event - :name: repository_push_audit_event
:feature_category: :authentication_and_authorization :feature_category: :authentication_and_authorization
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: repository_update_mirror - :name: repository_update_mirror
:feature_category: :source_code_management :feature_category: :source_code_management
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
- :name: service_desk_email_receiver - :name: service_desk_email_receiver
:feature_category: :issue_tracking :feature_category: :issue_tracking
:has_external_dependencies: :has_external_dependencies:
:latency_sensitive: :urgency: :default
:resource_boundary: :unknown :resource_boundary: :unknown
:weight: 1 :weight: 1
:idempotent: :idempotent:
...@@ -6,7 +6,7 @@ class SyncSecurityReportsToReportApprovalRulesWorker # rubocop:disable Scalabili ...@@ -6,7 +6,7 @@ class SyncSecurityReportsToReportApprovalRulesWorker # rubocop:disable Scalabili
include ApplicationWorker include ApplicationWorker
include SecurityScansQueue include SecurityScansQueue
latency_sensitive_worker! urgency :high
worker_resource_boundary :cpu worker_resource_boundary :cpu
def perform(pipeline_id) def perform(pipeline_id)
......
...@@ -92,18 +92,18 @@ describe Gitlab::SidekiqCluster::CLI do ...@@ -92,18 +92,18 @@ describe Gitlab::SidekiqCluster::CLI do
included_queues: %w(auto_merge:auto_merge_process project_export), included_queues: %w(auto_merge:auto_merge_process project_export),
excluded_queues: %w(merge) excluded_queues: %w(merge)
}, },
'latency-sensitive CI queues' => { 'high urgency CI queues' => {
query: 'feature_category=continuous_integration&latency_sensitive=true', query: 'feature_category=continuous_integration&urgency=high',
included_queues: %w(pipeline_cache:expire_job_cache pipeline_cache:expire_pipeline_cache), included_queues: %w(pipeline_cache:expire_job_cache pipeline_cache:expire_pipeline_cache),
excluded_queues: %w(merge) excluded_queues: %w(merge)
}, },
'CPU-bound latency-sensitive CI queues' => { 'CPU-bound high urgency CI queues' => {
query: 'feature_category=continuous_integration&latency_sensitive=true&resource_boundary=cpu', query: 'feature_category=continuous_integration&urgency=high&resource_boundary=cpu',
included_queues: %w(pipeline_cache:expire_pipeline_cache), included_queues: %w(pipeline_cache:expire_pipeline_cache),
excluded_queues: %w(pipeline_cache:expire_job_cache merge) excluded_queues: %w(pipeline_cache:expire_job_cache merge)
}, },
'CPU-bound latency-sensitive non-CI queues' => { 'CPU-bound high urgency non-CI queues' => {
query: 'feature_category!=continuous_integration&latency_sensitive=true&resource_boundary=cpu', query: 'feature_category!=continuous_integration&urgency=high&resource_boundary=cpu',
included_queues: %w(new_issue), included_queues: %w(new_issue),
excluded_queues: %w(pipeline_cache:expire_pipeline_cache) excluded_queues: %w(pipeline_cache:expire_pipeline_cache)
}, },
...@@ -147,7 +147,7 @@ describe Gitlab::SidekiqCluster::CLI do ...@@ -147,7 +147,7 @@ describe Gitlab::SidekiqCluster::CLI do
.with([['chat_notification'], ['project_export']], default_options) .with([['chat_notification'], ['project_export']], default_options)
.and_return([]) .and_return([])
cli.run(%w(--experimental-queue-selector feature_category=chatops&latency_sensitive=true resource_boundary=memory&feature_category=importers)) cli.run(%w(--experimental-queue-selector feature_category=chatops&urgency=high resource_boundary=memory&feature_category=importers))
end end
it 'errors on an invalid query multiple queue groups correctly' do it 'errors on an invalid query multiple queue groups correctly' do
......
...@@ -26,9 +26,9 @@ module Gitlab ...@@ -26,9 +26,9 @@ module Gitlab
QUERY_PREDICATES = { QUERY_PREDICATES = {
feature_category: :to_sym, feature_category: :to_sym,
has_external_dependencies: lambda { |value| value == 'true' }, has_external_dependencies: lambda { |value| value == 'true' },
latency_sensitive: lambda { |value| value == 'true' },
name: :to_s, name: :to_s,
resource_boundary: :to_sym resource_boundary: :to_sym,
urgency: :to_sym
}.freeze }.freeze
QueryError = Class.new(StandardError) QueryError = Class.new(StandardError)
......
...@@ -9,7 +9,7 @@ module Gitlab ...@@ -9,7 +9,7 @@ module Gitlab
ATTRIBUTE_METHODS = { ATTRIBUTE_METHODS = {
feature_category: :get_feature_category, feature_category: :get_feature_category,
has_external_dependencies: :worker_has_external_dependencies?, has_external_dependencies: :worker_has_external_dependencies?,
latency_sensitive: :latency_sensitive_worker?, urgency: :get_urgency,
resource_boundary: :get_worker_resource_boundary, resource_boundary: :get_worker_resource_boundary,
idempotent: :idempotent?, idempotent: :idempotent?,
weight: :get_weight weight: :get_weight
......
...@@ -7,8 +7,8 @@ module Gitlab ...@@ -7,8 +7,8 @@ module Gitlab
attr_reader :klass attr_reader :klass
delegate :feature_category_not_owned?, :get_feature_category, delegate :feature_category_not_owned?, :get_feature_category,
:get_weight, :get_worker_resource_boundary, :idempotent?, :get_urgency, :get_weight, :get_worker_resource_boundary,
:latency_sensitive_worker?, :queue, :queue_namespace, :idempotent?, :queue, :queue_namespace,
:worker_has_external_dependencies?, :worker_has_external_dependencies?,
to: :klass to: :klass
...@@ -49,7 +49,7 @@ module Gitlab ...@@ -49,7 +49,7 @@ module Gitlab
name: queue, name: queue,
feature_category: get_feature_category, feature_category: get_feature_category,
has_external_dependencies: worker_has_external_dependencies?, has_external_dependencies: worker_has_external_dependencies?,
latency_sensitive: latency_sensitive_worker?, urgency: get_urgency,
resource_boundary: get_worker_resource_boundary, resource_boundary: get_worker_resource_boundary,
weight: get_weight, weight: get_weight,
idempotent: idempotent? idempotent: idempotent?
......
...@@ -9,10 +9,10 @@ module Gitlab ...@@ -9,10 +9,10 @@ module Gitlab
private private
def create_labels(worker_class, queue) def create_labels(worker_class, queue)
labels = { queue: queue.to_s, latency_sensitive: FALSE_LABEL, external_dependencies: FALSE_LABEL, feature_category: "", boundary: "" } labels = { queue: queue.to_s, urgency: "", external_dependencies: FALSE_LABEL, feature_category: "", boundary: "" }
return labels unless worker_class && worker_class.include?(WorkerAttributes) return labels unless worker_class && worker_class.include?(WorkerAttributes)
labels[:latency_sensitive] = bool_as_label(worker_class.latency_sensitive_worker?) labels[:urgency] = worker_class.get_urgency.to_s
labels[:external_dependencies] = bool_as_label(worker_class.worker_has_external_dependencies?) labels[:external_dependencies] = bool_as_label(worker_class.worker_has_external_dependencies?)
feature_category = worker_class.get_feature_category feature_category = worker_class.get_feature_category
......
...@@ -124,28 +124,28 @@ describe Gitlab::SidekiqConfig::CliMethods do ...@@ -124,28 +124,28 @@ describe Gitlab::SidekiqConfig::CliMethods do
name: 'a', name: 'a',
feature_category: :category_a, feature_category: :category_a,
has_external_dependencies: false, has_external_dependencies: false,
latency_sensitive: false, urgency: :default,
resource_boundary: :cpu resource_boundary: :cpu
}, },
{ {
name: 'a:2', name: 'a:2',
feature_category: :category_a, feature_category: :category_a,
has_external_dependencies: false, has_external_dependencies: false,
latency_sensitive: true, urgency: :high,
resource_boundary: :none resource_boundary: :none
}, },
{ {
name: 'b', name: 'b',
feature_category: :category_b, feature_category: :category_b,
has_external_dependencies: true, has_external_dependencies: true,
latency_sensitive: true, urgency: :high,
resource_boundary: :memory resource_boundary: :memory
}, },
{ {
name: 'c', name: 'c',
feature_category: :category_c, feature_category: :category_c,
has_external_dependencies: false, has_external_dependencies: false,
latency_sensitive: false, urgency: :none,
resource_boundary: :memory resource_boundary: :memory
} }
] ]
...@@ -166,12 +166,12 @@ describe Gitlab::SidekiqConfig::CliMethods do ...@@ -166,12 +166,12 @@ describe Gitlab::SidekiqConfig::CliMethods do
'has_external_dependencies=true|has_external_dependencies=false' | %w(a a:2 b c) 'has_external_dependencies=true|has_external_dependencies=false' | %w(a a:2 b c)
'has_external_dependencies!=true' | %w(a a:2 c) 'has_external_dependencies!=true' | %w(a a:2 c)
# latency_sensitive # urgency
'latency_sensitive=true' | %w(a:2 b) 'urgency=high' | %w(a:2 b)
'latency_sensitive=false' | %w(a c) 'urgency=default' | %w(a)
'latency_sensitive=true,false' | %w(a a:2 b c) 'urgency=high,default,none' | %w(a a:2 b c)
'latency_sensitive=true|latency_sensitive=false' | %w(a a:2 b c) 'urgency=default|urgency=none' | %w(a c)
'latency_sensitive!=true' | %w(a c) 'urgency!=high' | %w(a c)
# name # name
'name=a' | %w(a) 'name=a' | %w(a)
...@@ -186,8 +186,8 @@ describe Gitlab::SidekiqConfig::CliMethods do ...@@ -186,8 +186,8 @@ describe Gitlab::SidekiqConfig::CliMethods do
'resource_boundary!=memory,cpu' | %w(a:2) 'resource_boundary!=memory,cpu' | %w(a:2)
# combinations # combinations
'feature_category=category_a&latency_sensitive=true' | %w(a:2) 'feature_category=category_a&urgency=high' | %w(a:2)
'feature_category=category_a&latency_sensitive=true|feature_category=category_c' | %w(a:2 c) 'feature_category=category_a&urgency=high|feature_category=category_c' | %w(a:2 c)
end end
with_them do with_them do
......
...@@ -11,7 +11,7 @@ describe Gitlab::SidekiqConfig::Worker do ...@@ -11,7 +11,7 @@ describe Gitlab::SidekiqConfig::Worker do
get_feature_category: attributes[:feature_category], get_feature_category: attributes[:feature_category],
get_weight: attributes[:weight], get_weight: attributes[:weight],
get_worker_resource_boundary: attributes[:resource_boundary], get_worker_resource_boundary: attributes[:resource_boundary],
latency_sensitive_worker?: attributes[:latency_sensitive], get_urgency: attributes[:urgency],
worker_has_external_dependencies?: attributes[:has_external_dependencies], worker_has_external_dependencies?: attributes[:has_external_dependencies],
idempotent?: attributes[:idempotent] idempotent?: attributes[:idempotent]
) )
...@@ -47,7 +47,7 @@ describe Gitlab::SidekiqConfig::Worker do ...@@ -47,7 +47,7 @@ describe Gitlab::SidekiqConfig::Worker do
describe 'delegations' do describe 'delegations' do
[ [
:feature_category_not_owned?, :get_feature_category, :get_weight, :feature_category_not_owned?, :get_feature_category, :get_weight,
:get_worker_resource_boundary, :latency_sensitive_worker?, :queue, :get_worker_resource_boundary, :get_urgency, :queue,
:queue_namespace, :worker_has_external_dependencies? :queue_namespace, :worker_has_external_dependencies?
].each do |meth| ].each do |meth|
it "delegates #{meth} to the worker class" do it "delegates #{meth} to the worker class" do
...@@ -88,7 +88,7 @@ describe Gitlab::SidekiqConfig::Worker do ...@@ -88,7 +88,7 @@ describe Gitlab::SidekiqConfig::Worker do
attributes_a = { attributes_a = {
feature_category: :source_code_management, feature_category: :source_code_management,
has_external_dependencies: false, has_external_dependencies: false,
latency_sensitive: false, urgency: :default,
resource_boundary: :memory, resource_boundary: :memory,
weight: 2, weight: 2,
idempotent: true idempotent: true
...@@ -97,7 +97,7 @@ describe Gitlab::SidekiqConfig::Worker do ...@@ -97,7 +97,7 @@ describe Gitlab::SidekiqConfig::Worker do
attributes_b = { attributes_b = {
feature_category: :not_owned, feature_category: :not_owned,
has_external_dependencies: true, has_external_dependencies: true,
latency_sensitive: true, urgency: :high,
resource_boundary: :unknown, resource_boundary: :unknown,
weight: 3, weight: 3,
idempotent: false idempotent: false
......
...@@ -9,7 +9,7 @@ describe Gitlab::SidekiqMiddleware::ClientMetrics do ...@@ -9,7 +9,7 @@ describe Gitlab::SidekiqMiddleware::ClientMetrics do
let(:queue) { :test } let(:queue) { :test }
let(:worker_class) { worker.class } let(:worker_class) { worker.class }
let(:job) { {} } let(:job) { {} }
let(:default_labels) { { queue: queue.to_s, boundary: "", external_dependencies: "no", feature_category: "", latency_sensitive: "no" } } let(:default_labels) { { queue: queue.to_s, boundary: "", external_dependencies: "no", feature_category: "", urgency: "default" } }
shared_examples "a metrics client middleware" do shared_examples "a metrics client middleware" do
context "with mocked prometheus" do context "with mocked prometheus" do
...@@ -46,17 +46,17 @@ describe Gitlab::SidekiqMiddleware::ClientMetrics do ...@@ -46,17 +46,17 @@ describe Gitlab::SidekiqMiddleware::ClientMetrics do
it_behaves_like "a metrics client middleware" do it_behaves_like "a metrics client middleware" do
let(:worker) { TestNonAttributedWorker.new } let(:worker) { TestNonAttributedWorker.new }
let(:labels) { default_labels } let(:labels) { default_labels.merge(urgency: "") }
end end
end end
context "when workers are attributed" do context "when workers are attributed" do
def create_attributed_worker_class(latency_sensitive, external_dependencies, resource_boundary, category) def create_attributed_worker_class(urgency, external_dependencies, resource_boundary, category)
klass = Class.new do klass = Class.new do
include Sidekiq::Worker include Sidekiq::Worker
include WorkerAttributes include WorkerAttributes
latency_sensitive_worker! if latency_sensitive urgency urgency if urgency
worker_has_external_dependencies! if external_dependencies worker_has_external_dependencies! if external_dependencies
worker_resource_boundary resource_boundary unless resource_boundary == :unknown worker_resource_boundary resource_boundary unless resource_boundary == :unknown
feature_category category unless category.nil? feature_category category unless category.nil?
...@@ -64,17 +64,24 @@ describe Gitlab::SidekiqMiddleware::ClientMetrics do ...@@ -64,17 +64,24 @@ describe Gitlab::SidekiqMiddleware::ClientMetrics do
stub_const("TestAttributedWorker", klass) stub_const("TestAttributedWorker", klass)
end end
let(:latency_sensitive) { false } let(:urgency) { nil }
let(:external_dependencies) { false } let(:external_dependencies) { false }
let(:resource_boundary) { :unknown } let(:resource_boundary) { :unknown }
let(:feature_category) { nil } let(:feature_category) { nil }
let(:worker_class) { create_attributed_worker_class(latency_sensitive, external_dependencies, resource_boundary, feature_category) } let(:worker_class) { create_attributed_worker_class(urgency, external_dependencies, resource_boundary, feature_category) }
let(:worker) { worker_class.new } let(:worker) { worker_class.new }
context "latency sensitive" do context "high urgency" do
it_behaves_like "a metrics client middleware" do it_behaves_like "a metrics client middleware" do
let(:latency_sensitive) { true } let(:urgency) { :high }
let(:labels) { default_labels.merge(latency_sensitive: "yes") } let(:labels) { default_labels.merge(urgency: "high") }
end
end
context "no urgency" do
it_behaves_like "a metrics client middleware" do
let(:urgency) { :none }
let(:labels) { default_labels.merge(urgency: "none") }
end end
end end
...@@ -108,11 +115,11 @@ describe Gitlab::SidekiqMiddleware::ClientMetrics do ...@@ -108,11 +115,11 @@ describe Gitlab::SidekiqMiddleware::ClientMetrics do
context "combined" do context "combined" do
it_behaves_like "a metrics client middleware" do it_behaves_like "a metrics client middleware" do
let(:latency_sensitive) { true } let(:urgency) { :high }
let(:external_dependencies) { true } let(:external_dependencies) { true }
let(:resource_boundary) { :cpu } let(:resource_boundary) { :cpu }
let(:feature_category) { :authentication } let(:feature_category) { :authentication }
let(:labels) { default_labels.merge(latency_sensitive: "yes", external_dependencies: "yes", boundary: "cpu", feature_category: "authentication") } let(:labels) { default_labels.merge(urgency: "high", external_dependencies: "yes", boundary: "cpu", feature_category: "authentication") }
end end
end end
end end
......
...@@ -11,7 +11,7 @@ describe Gitlab::SidekiqMiddleware::ServerMetrics do ...@@ -11,7 +11,7 @@ describe Gitlab::SidekiqMiddleware::ServerMetrics do
let(:job) { {} } let(:job) { {} }
let(:job_status) { :done } let(:job_status) { :done }
let(:labels_with_job_status) { labels.merge(job_status: job_status.to_s) } let(:labels_with_job_status) { labels.merge(job_status: job_status.to_s) }
let(:default_labels) { { queue: queue.to_s, boundary: "", external_dependencies: "no", feature_category: "", latency_sensitive: "no" } } let(:default_labels) { { queue: queue.to_s, boundary: "", external_dependencies: "no", feature_category: "", urgency: "default" } }
shared_examples "a metrics middleware" do shared_examples "a metrics middleware" do
context "with mocked prometheus" do context "with mocked prometheus" do
...@@ -130,34 +130,34 @@ describe Gitlab::SidekiqMiddleware::ServerMetrics do ...@@ -130,34 +130,34 @@ describe Gitlab::SidekiqMiddleware::ServerMetrics do
include Sidekiq::Worker include Sidekiq::Worker
end end
let(:worker) { TestNonAttributedWorker.new } let(:worker) { TestNonAttributedWorker.new }
let(:labels) { default_labels } let(:labels) { default_labels.merge(urgency: "") }
it_behaves_like "a metrics middleware" it_behaves_like "a metrics middleware"
end end
context "when workers are attributed" do context "when workers are attributed" do
def create_attributed_worker_class(latency_sensitive, external_dependencies, resource_boundary, category) def create_attributed_worker_class(urgency, external_dependencies, resource_boundary, category)
Class.new do Class.new do
include Sidekiq::Worker include Sidekiq::Worker
include WorkerAttributes include WorkerAttributes
latency_sensitive_worker! if latency_sensitive urgency urgency if urgency
worker_has_external_dependencies! if external_dependencies worker_has_external_dependencies! if external_dependencies
worker_resource_boundary resource_boundary unless resource_boundary == :unknown worker_resource_boundary resource_boundary unless resource_boundary == :unknown
feature_category category unless category.nil? feature_category category unless category.nil?
end end
end end
let(:latency_sensitive) { false } let(:urgency) { nil }
let(:external_dependencies) { false } let(:external_dependencies) { false }
let(:resource_boundary) { :unknown } let(:resource_boundary) { :unknown }
let(:feature_category) { nil } let(:feature_category) { nil }
let(:worker_class) { create_attributed_worker_class(latency_sensitive, external_dependencies, resource_boundary, feature_category) } let(:worker_class) { create_attributed_worker_class(urgency, external_dependencies, resource_boundary, feature_category) }
let(:worker) { worker_class.new } let(:worker) { worker_class.new }
context "latency sensitive" do context "high urgency" do
let(:latency_sensitive) { true } let(:urgency) { :high }
let(:labels) { default_labels.merge(latency_sensitive: "yes") } let(:labels) { default_labels.merge(urgency: "high") }
it_behaves_like "a metrics middleware" it_behaves_like "a metrics middleware"
end end
...@@ -191,11 +191,11 @@ describe Gitlab::SidekiqMiddleware::ServerMetrics do ...@@ -191,11 +191,11 @@ describe Gitlab::SidekiqMiddleware::ServerMetrics do
end end
context "combined" do context "combined" do
let(:latency_sensitive) { true } let(:urgency) { :none }
let(:external_dependencies) { true } let(:external_dependencies) { true }
let(:resource_boundary) { :cpu } let(:resource_boundary) { :cpu }
let(:feature_category) { :authentication } let(:feature_category) { :authentication }
let(:labels) { default_labels.merge(latency_sensitive: "yes", external_dependencies: "yes", boundary: "cpu", feature_category: "authentication") } let(:labels) { default_labels.merge(urgency: "none", external_dependencies: "yes", boundary: "cpu", feature_category: "authentication") }
it_behaves_like "a metrics middleware" it_behaves_like "a metrics middleware"
end end
......
...@@ -71,30 +71,30 @@ describe 'Every Sidekiq worker' do ...@@ -71,30 +71,30 @@ describe 'Every Sidekiq worker' do
# concurrency, so that each job can consume a large amounts of memory. For this reason, on # concurrency, so that each job can consume a large amounts of memory. For this reason, on
# GitLab.com, when a large number of memory-bound jobs arrive at once, we let them queue up # GitLab.com, when a large number of memory-bound jobs arrive at once, we let them queue up
# rather than scaling the hardware to meet the SLO. For this reason, memory-bound, # rather than scaling the hardware to meet the SLO. For this reason, memory-bound,
# latency-sensitive jobs are explicitly discouraged and disabled. # high urgency jobs are explicitly discouraged and disabled.
it 'is (exclusively) memory-bound or latency-sentitive, not both', :aggregate_failures do it 'is (exclusively) memory-bound or high urgency, not both', :aggregate_failures do
latency_sensitive_workers = workers_without_defaults high_urgency_workers = workers_without_defaults
.select(&:latency_sensitive_worker?) .select { |worker| worker.get_urgency == :high }
latency_sensitive_workers.each do |worker| high_urgency_workers.each do |worker|
expect(worker.get_worker_resource_boundary).not_to eq(:memory), "#{worker.inspect} cannot be both memory-bound and latency sensitive" expect(worker.get_worker_resource_boundary).not_to eq(:memory), "#{worker.inspect} cannot be both memory-bound and high urgency"
end end
end end
# In high traffic installations, such as GitLab.com, `latency_sensitive` workers run in a # In high traffic installations, such as GitLab.com, `urgency :high` workers run in a
# dedicated fleet. In order to ensure short queue times, `latency_sensitive` jobs have strict # dedicated fleet. In order to ensure short queue times, `urgency :high` jobs have strict
# SLOs in order to ensure throughput. However, when a worker depends on an external service, # SLOs in order to ensure throughput. However, when a worker depends on an external service,
# such as a user's k8s cluster or a third-party internet service, we cannot guarantee latency, # such as a user's k8s cluster or a third-party internet service, we cannot guarantee latency,
# and therefore throughput. An outage to an 3rd party service could therefore impact throughput # and therefore throughput. An outage to an 3rd party service could therefore impact throughput
# on other latency_sensitive jobs, leading to degradation through the GitLab application. # on other high urgency jobs, leading to degradation through the GitLab application.
# Please see doc/development/sidekiq_style_guide.md#Jobs-with-External-Dependencies for more # Please see doc/development/sidekiq_style_guide.md#jobs-with-external-dependencies for more
# details. # details.
it 'has (exclusively) external dependencies or is latency-sentitive, not both', :aggregate_failures do it 'has (exclusively) external dependencies or is high urgency, not both', :aggregate_failures do
latency_sensitive_workers = workers_without_defaults high_urgency_workers = workers_without_defaults
.select(&:latency_sensitive_worker?) .select { |worker| worker.get_urgency == :high }
latency_sensitive_workers.each do |worker| high_urgency_workers.each do |worker|
expect(worker.worker_has_external_dependencies?).to be_falsey, "#{worker.inspect} cannot have both external dependencies and be latency sensitive" expect(worker.worker_has_external_dependencies?).to be_falsey, "#{worker.inspect} cannot have both external dependencies and be high urgency"
end end
end end
end end
......
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