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 30 additions and 0 deletions
Loading
Loading
@@ -5,6 +5,8 @@ class ExpirePipelineCacheWorker
include PipelineQueue
 
queue_namespace :pipeline_cache
latency_sensitive_worker!
worker_resource_boundary :cpu
 
# rubocop: disable CodeReuse/ActiveRecord
def perform(pipeline_id)
Loading
Loading
Loading
Loading
@@ -5,6 +5,7 @@ class GitlabShellWorker
include Gitlab::ShellAdapter
 
feature_category :source_code_management
latency_sensitive_worker!
 
def perform(action, *arg)
gitlab_shell.__send__(action, *arg) # rubocop:disable GitlabSecurity/PublicSend
Loading
Loading
Loading
Loading
@@ -4,6 +4,7 @@ class ImportIssuesCsvWorker
include ApplicationWorker
 
feature_category :issue_tracking
worker_resource_boundary :cpu
 
sidekiq_retries_exhausted do |job|
Upload.find(job['args'][2]).destroy
Loading
Loading
Loading
Loading
@@ -8,6 +8,7 @@ module MailScheduler
include MailSchedulerQueue
 
feature_category :issue_tracking
worker_resource_boundary :cpu
 
def perform(meth, *args)
check_arguments!(args)
Loading
Loading
Loading
Loading
@@ -4,6 +4,7 @@ class MergeWorker
include ApplicationWorker
 
feature_category :source_code_management
latency_sensitive_worker!
 
def perform(merge_request_id, current_user_id, params)
params = params.with_indifferent_access
Loading
Loading
Loading
Loading
@@ -6,6 +6,7 @@ module Namespaces
include CronjobQueue
 
feature_category :source_code_management
worker_resource_boundary :cpu
 
# Worker to prune pending rows on Namespace::AggregationSchedule
# It's scheduled to run once a day at 1:05am.
Loading
Loading
Loading
Loading
@@ -5,6 +5,8 @@ class NewIssueWorker
include NewIssuable
 
feature_category :issue_tracking
latency_sensitive_worker!
worker_resource_boundary :cpu
 
def perform(issue_id, user_id)
return unless objects_found?(issue_id, user_id)
Loading
Loading
Loading
Loading
@@ -5,6 +5,8 @@ class NewMergeRequestWorker
include NewIssuable
 
feature_category :source_code_management
latency_sensitive_worker!
worker_resource_boundary :cpu
 
def perform(merge_request_id, user_id)
return unless objects_found?(merge_request_id, user_id)
Loading
Loading
Loading
Loading
@@ -4,6 +4,8 @@ class NewNoteWorker
include ApplicationWorker
 
feature_category :issue_tracking
latency_sensitive_worker!
worker_resource_boundary :cpu
 
# Keep extra parameter to preserve backwards compatibility with
# old `NewNoteWorker` jobs (can remove later)
Loading
Loading
Loading
Loading
@@ -5,6 +5,8 @@ module ObjectPool
include ApplicationWorker
include ObjectPoolQueue
 
worker_resource_boundary :cpu
# The use of pool id is deprecated. Keeping the argument allows old jobs to
# still be performed.
def perform(_pool_id, project_id)
Loading
Loading
Loading
Loading
@@ -5,6 +5,7 @@ class PagesDomainRemovalCronWorker
include CronjobQueue
 
feature_category :pages
worker_resource_boundary :cpu
 
def perform
PagesDomain.for_removal.find_each do |domain|
Loading
Loading
Loading
Loading
@@ -5,6 +5,8 @@ class PipelineHooksWorker
include PipelineQueue
 
queue_namespace :pipeline_hooks
latency_sensitive_worker!
worker_resource_boundary :cpu
 
# rubocop: disable CodeReuse/ActiveRecord
def perform(pipeline_id)
Loading
Loading
Loading
Loading
@@ -4,6 +4,8 @@ class PipelineMetricsWorker
include ApplicationWorker
include PipelineQueue
 
latency_sensitive_worker!
# rubocop: disable CodeReuse/ActiveRecord
def perform(pipeline_id)
Ci::Pipeline.find_by(id: pipeline_id).try do |pipeline|
Loading
Loading
Loading
Loading
@@ -4,6 +4,9 @@ class PipelineNotificationWorker
include ApplicationWorker
include PipelineQueue
 
latency_sensitive_worker!
worker_resource_boundary :cpu
# rubocop: disable CodeReuse/ActiveRecord
def perform(pipeline_id, recipients = nil)
pipeline = Ci::Pipeline.find_by(id: pipeline_id)
Loading
Loading
Loading
Loading
@@ -6,6 +6,7 @@ class PipelineProcessWorker
 
queue_namespace :pipeline_processing
feature_category :continuous_integration
latency_sensitive_worker!
 
# rubocop: disable CodeReuse/ActiveRecord
def perform(pipeline_id, build_ids = nil)
Loading
Loading
Loading
Loading
@@ -5,6 +5,7 @@ class PipelineScheduleWorker
include CronjobQueue
 
feature_category :continuous_integration
worker_resource_boundary :cpu
 
def perform
Ci::PipelineSchedule.runnable_schedules.preloaded.find_in_batches do |schedules|
Loading
Loading
Loading
Loading
@@ -5,6 +5,7 @@ class PipelineSuccessWorker
include PipelineQueue
 
queue_namespace :pipeline_processing
latency_sensitive_worker!
 
def perform(pipeline_id)
# no-op
Loading
Loading
Loading
Loading
@@ -5,6 +5,7 @@ class PipelineUpdateWorker
include PipelineQueue
 
queue_namespace :pipeline_processing
latency_sensitive_worker!
 
# rubocop: disable CodeReuse/ActiveRecord
def perform(pipeline_id)
Loading
Loading
Loading
Loading
@@ -4,6 +4,8 @@ class PostReceive
include ApplicationWorker
 
feature_category :source_code_management
latency_sensitive_worker!
worker_resource_boundary :cpu
 
def perform(gl_repository, identifier, changes, push_options = {})
project, repo_type = Gitlab::GlRepository.parse(gl_repository)
Loading
Loading
Loading
Loading
@@ -11,6 +11,7 @@ class ProcessCommitWorker
include ApplicationWorker
 
feature_category :source_code_management
latency_sensitive_worker!
 
# project_id - The ID of the project this commit belongs to.
# user_id - The ID of the user that pushed the commit.
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