Skip to content
Snippets Groups Projects
Commit 3fe9588b authored by GitLab Bot's avatar GitLab Bot
Browse files

Add latest changes from gitlab-org/gitlab@master

parent ad8eea38
No related branches found
No related tags found
No related merge requests found
Showing
with 38 additions and 0 deletions
Loading
Loading
@@ -6,6 +6,8 @@ class BuildQueueWorker
 
queue_namespace :pipeline_processing
feature_category :continuous_integration
latency_sensitive_worker!
worker_resource_boundary :cpu
 
# rubocop: disable CodeReuse/ActiveRecord
def perform(build_id)
Loading
Loading
Loading
Loading
@@ -5,6 +5,7 @@ class BuildSuccessWorker
include PipelineQueue
 
queue_namespace :pipeline_processing
latency_sensitive_worker!
 
# rubocop: disable CodeReuse/ActiveRecord
def perform(build_id)
Loading
Loading
Loading
Loading
@@ -4,6 +4,11 @@ class ChatNotificationWorker
include ApplicationWorker
 
feature_category :chatops
latency_sensitive_worker!
# TODO: break this into multiple jobs
# as the `responder` uses external dependencies
# See https://gitlab.com/gitlab-com/gl-infra/scalability/issues/34
# worker_has_external_dependencies!
 
RESCHEDULE_INTERVAL = 2.seconds
 
Loading
Loading
Loading
Loading
@@ -7,6 +7,7 @@ module Ci
 
queue_namespace :pipeline_processing
feature_category :continuous_integration
worker_resource_boundary :cpu
 
def perform(build_id)
::Ci::Build.find_by_id(build_id).try do |build|
Loading
Loading
Loading
Loading
@@ -5,6 +5,8 @@ class ClusterInstallAppWorker
include ClusterQueue
include ClusterApplications
 
worker_has_external_dependencies!
def perform(app_name, app_id)
find_application(app_name, app_id) do |app|
Clusters::Applications::InstallService.new(app).execute
Loading
Loading
Loading
Loading
@@ -5,6 +5,8 @@ class ClusterPatchAppWorker
include ClusterQueue
include ClusterApplications
 
worker_has_external_dependencies!
def perform(app_name, app_id)
find_application(app_name, app_id) do |app|
Clusters::Applications::PatchService.new(app).execute
Loading
Loading
Loading
Loading
@@ -4,6 +4,8 @@ class ClusterProjectConfigureWorker
include ApplicationWorker
include ClusterQueue
 
worker_has_external_dependencies!
def perform(project_id)
# Scheduled for removal in https://gitlab.com/gitlab-org/gitlab-foss/issues/59319
end
Loading
Loading
Loading
Loading
@@ -4,6 +4,8 @@ class ClusterProvisionWorker
include ApplicationWorker
include ClusterQueue
 
worker_has_external_dependencies!
def perform(cluster_id)
Clusters::Cluster.find_by_id(cluster_id).try do |cluster|
cluster.provider.try do |provider|
Loading
Loading
Loading
Loading
@@ -5,6 +5,8 @@ class ClusterUpgradeAppWorker
include ClusterQueue
include ClusterApplications
 
worker_has_external_dependencies!
def perform(app_name, app_id)
find_application(app_name, app_id) do |app|
Clusters::Applications::UpgradeService.new(app).execute
Loading
Loading
Loading
Loading
@@ -8,6 +8,9 @@ class ClusterWaitForAppInstallationWorker
INTERVAL = 10.seconds
TIMEOUT = 20.minutes
 
worker_has_external_dependencies!
worker_resource_boundary :cpu
def perform(app_name, app_id)
find_application(app_name, app_id) do |app|
Clusters::Applications::CheckInstallationProgressService.new(app).execute
Loading
Loading
Loading
Loading
@@ -5,6 +5,8 @@ class ClusterWaitForIngressIpAddressWorker
include ClusterQueue
include ClusterApplications
 
worker_has_external_dependencies!
def perform(app_name, app_id)
find_application(app_name, app_id) do |app|
Clusters::Applications::CheckIngressIpAddressService.new(app).execute
Loading
Loading
Loading
Loading
@@ -7,6 +7,8 @@ module Clusters
include ClusterQueue
include ClusterApplications
 
worker_has_external_dependencies!
def perform(app_name, app_id)
find_application(app_name, app_id) do |app|
Clusters::Applications::UninstallService.new(app).execute
Loading
Loading
Loading
Loading
@@ -10,6 +10,9 @@ module Clusters
INTERVAL = 10.seconds
TIMEOUT = 20.minutes
 
worker_has_external_dependencies!
worker_resource_boundary :cpu
def perform(app_name, app_id)
find_application(app_name, app_id) do |app|
Clusters::Applications::CheckUninstallProgressService.new(app).execute
Loading
Loading
Loading
Loading
@@ -14,6 +14,7 @@ module Gitlab
include NotifyUponDeath
 
feature_category :importers
worker_has_external_dependencies!
end
 
# project - An instance of `Project` to import the data into.
Loading
Loading
Loading
Loading
@@ -6,6 +6,8 @@ class CreatePipelineWorker
 
queue_namespace :pipeline_creation
feature_category :continuous_integration
latency_sensitive_worker!
worker_resource_boundary :cpu
 
def perform(project_id, user_id, ref, source, params = {})
project = Project.find(project_id)
Loading
Loading
Loading
Loading
@@ -6,6 +6,7 @@ module Deployments
 
queue_namespace :deployment
feature_category :continuous_delivery
worker_resource_boundary :cpu
 
def perform(deployment_id)
Deployment.find_by_id(deployment_id).try(:execute_hooks)
Loading
Loading
Loading
Loading
@@ -6,6 +6,7 @@ module Deployments
 
queue_namespace :deployment
feature_category :continuous_delivery
worker_resource_boundary :cpu
 
def perform(deployment_id)
Deployment.find_by_id(deployment_id).try do |deployment|
Loading
Loading
Loading
Loading
@@ -4,6 +4,7 @@ class EmailReceiverWorker
include ApplicationWorker
 
feature_category :issue_tracking
latency_sensitive_worker!
 
def perform(raw)
return unless Gitlab::IncomingEmail.enabled?
Loading
Loading
Loading
Loading
@@ -6,6 +6,8 @@ class EmailsOnPushWorker
attr_reader :email, :skip_premailer
 
feature_category :source_code_management
latency_sensitive_worker!
worker_resource_boundary :cpu
 
def perform(project_id, recipients, push_data, options = {})
options.symbolize_keys!
Loading
Loading
Loading
Loading
@@ -5,6 +5,7 @@ class ExpireJobCacheWorker
include PipelineQueue
 
queue_namespace :pipeline_cache
latency_sensitive_worker!
 
# rubocop: disable CodeReuse/ActiveRecord
def perform(job_id)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment