Commit 6cdcb057 authored by Arturo Herrero's avatar Arturo Herrero Committed by Alex Kalderimis

Add urgency for Ecosystem workers

parent 2b8b1f2a
...@@ -4,10 +4,10 @@ class FileHookWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,10 +4,10 @@ class FileHookWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
sidekiq_options retry: false sidekiq_options retry: false
feature_category :integrations feature_category :integrations
loggable_arguments 0 loggable_arguments 0
urgency :low
def perform(file_name, data) def perform(file_name, data)
success, message = Gitlab::FileHook.execute(file_name, data) success, message = Gitlab::FileHook.execute(file_name, data)
......
...@@ -7,10 +7,9 @@ class IrkerWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -7,10 +7,9 @@ class IrkerWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
urgency :low
def perform(project_id, channels, colors, push_data, settings) def perform(project_id, channels, colors, push_data, settings)
# Establish connection to irker server # Establish connection to irker server
......
...@@ -5,9 +5,10 @@ module JiraConnect ...@@ -5,9 +5,10 @@ module JiraConnect
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
queue_namespace :jira_connect queue_namespace :jira_connect
feature_category :integrations feature_category :integrations
urgency :low
worker_has_external_dependencies! worker_has_external_dependencies!
def perform(installation_id, base_path, event_path) def perform(installation_id, base_path, event_path)
......
...@@ -5,11 +5,11 @@ module JiraConnect ...@@ -5,11 +5,11 @@ module JiraConnect
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :jira_connect queue_namespace :jira_connect
feature_category :integrations feature_category :integrations
data_consistency :delayed data_consistency :delayed
loggable_arguments 1, 2 loggable_arguments 1, 2
urgency :low
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -5,11 +5,11 @@ module JiraConnect ...@@ -5,11 +5,11 @@ module JiraConnect
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :jira_connect queue_namespace :jira_connect
feature_category :integrations feature_category :integrations
data_consistency :delayed data_consistency :delayed
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
urgency :low
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -5,11 +5,11 @@ module JiraConnect ...@@ -5,11 +5,11 @@ module JiraConnect
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :jira_connect queue_namespace :jira_connect
feature_category :integrations feature_category :integrations
data_consistency :delayed data_consistency :delayed
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
urgency :low
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -5,11 +5,11 @@ module JiraConnect ...@@ -5,11 +5,11 @@ module JiraConnect
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :jira_connect queue_namespace :jira_connect
feature_category :integrations feature_category :integrations
data_consistency :delayed data_consistency :delayed
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
urgency :low
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -5,10 +5,10 @@ module JiraConnect ...@@ -5,10 +5,10 @@ module JiraConnect
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :jira_connect queue_namespace :jira_connect
feature_category :integrations feature_category :integrations
data_consistency :delayed data_consistency :delayed
urgency :low
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -5,11 +5,11 @@ module JiraConnect ...@@ -5,11 +5,11 @@ module JiraConnect
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3 sidekiq_options retry: 3
queue_namespace :jira_connect queue_namespace :jira_connect
feature_category :integrations feature_category :integrations
data_consistency :delayed data_consistency :delayed
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
urgency :low
worker_has_external_dependencies! worker_has_external_dependencies!
......
...@@ -4,11 +4,11 @@ class ProjectServiceWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,11 +4,11 @@ class ProjectServiceWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
sidekiq_options dead: false sidekiq_options dead: false
feature_category :integrations feature_category :integrations
urgency :low
worker_has_external_dependencies! worker_has_external_dependencies!
def perform(hook_id, data) def perform(hook_id, data)
......
...@@ -4,11 +4,11 @@ class PropagateIntegrationGroupWorker ...@@ -4,11 +4,11 @@ class PropagateIntegrationGroupWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
urgency :low
idempotent! idempotent!
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -4,11 +4,11 @@ class PropagateIntegrationInheritDescendantWorker ...@@ -4,11 +4,11 @@ class PropagateIntegrationInheritDescendantWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
urgency :low
idempotent! idempotent!
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -4,11 +4,11 @@ class PropagateIntegrationInheritWorker ...@@ -4,11 +4,11 @@ class PropagateIntegrationInheritWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
urgency :low
idempotent! idempotent!
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -4,11 +4,11 @@ class PropagateIntegrationProjectWorker ...@@ -4,11 +4,11 @@ class PropagateIntegrationProjectWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
urgency :low
idempotent! idempotent!
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
......
...@@ -4,12 +4,12 @@ class PropagateIntegrationWorker ...@@ -4,12 +4,12 @@ class PropagateIntegrationWorker
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
idempotent!
loggable_arguments 1 loggable_arguments 1
urgency :low
idempotent!
def perform(integration_id) def perform(integration_id)
Admin::PropagateIntegrationService.propagate(Integration.find(integration_id)) Admin::PropagateIntegrationService.propagate(Integration.find(integration_id))
......
# frozen_string_literal: true # frozen_string_literal: true
# Worker for updating any project specific caches. # No longer in use https://gitlab.com/groups/gitlab-org/-/epics/5672
# To be removed https://gitlab.com/gitlab-org/gitlab/-/issues/335178
class PropagateServiceTemplateWorker # rubocop:disable Scalability/IdempotentWorker class PropagateServiceTemplateWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker include ApplicationWorker
......
...@@ -6,11 +6,12 @@ class WebHookWorker ...@@ -6,11 +6,12 @@ class WebHookWorker
include ApplicationWorker include ApplicationWorker
feature_category :integrations feature_category :integrations
worker_has_external_dependencies!
loggable_arguments 2 loggable_arguments 2
data_consistency :delayed data_consistency :delayed
sidekiq_options retry: 4, dead: false sidekiq_options retry: 4, dead: false
urgency :low
worker_has_external_dependencies!
def perform(hook_id, data, hook_name) def perform(hook_id, data, hook_name)
hook = WebHook.find(hook_id) hook = WebHook.find(hook_id)
......
...@@ -5,12 +5,11 @@ module WebHooks ...@@ -5,12 +5,11 @@ module WebHooks
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :integrations feature_category :integrations
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
urgency :low urgency :low
idempotent! idempotent!
def perform(user_id, web_hook_id) def perform(user_id, web_hook_id)
......
...@@ -5,11 +5,11 @@ module WebHooks ...@@ -5,11 +5,11 @@ module WebHooks
include ApplicationWorker include ApplicationWorker
data_consistency :always data_consistency :always
idempotent!
feature_category :integrations feature_category :integrations
urgency :low urgency :low
idempotent!
# This worker accepts an extra argument. This enables us to # This worker accepts an extra argument. This enables us to
# treat this worker as idempotent. Currently this is set to # treat this worker as idempotent. Currently this is set to
# the Job ID (jid) of the parent worker. # the Job ID (jid) of the parent worker.
......
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