Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6cdcb057
Commit
6cdcb057
authored
Jul 26, 2021
by
Arturo Herrero
Committed by
Alex Kalderimis
Jul 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add urgency for Ecosystem workers
parent
2b8b1f2a
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
31 additions
and
30 deletions
+31
-30
app/workers/file_hook_worker.rb
app/workers/file_hook_worker.rb
+1
-1
app/workers/irker_worker.rb
app/workers/irker_worker.rb
+1
-2
app/workers/jira_connect/forward_event_worker.rb
app/workers/jira_connect/forward_event_worker.rb
+2
-1
app/workers/jira_connect/sync_branch_worker.rb
app/workers/jira_connect/sync_branch_worker.rb
+1
-1
app/workers/jira_connect/sync_builds_worker.rb
app/workers/jira_connect/sync_builds_worker.rb
+1
-1
app/workers/jira_connect/sync_deployments_worker.rb
app/workers/jira_connect/sync_deployments_worker.rb
+1
-1
app/workers/jira_connect/sync_feature_flags_worker.rb
app/workers/jira_connect/sync_feature_flags_worker.rb
+1
-1
app/workers/jira_connect/sync_merge_request_worker.rb
app/workers/jira_connect/sync_merge_request_worker.rb
+1
-1
app/workers/jira_connect/sync_project_worker.rb
app/workers/jira_connect/sync_project_worker.rb
+1
-1
app/workers/project_service_worker.rb
app/workers/project_service_worker.rb
+2
-2
app/workers/propagate_integration_group_worker.rb
app/workers/propagate_integration_group_worker.rb
+2
-2
app/workers/propagate_integration_inherit_descendant_worker.rb
...orkers/propagate_integration_inherit_descendant_worker.rb
+2
-2
app/workers/propagate_integration_inherit_worker.rb
app/workers/propagate_integration_inherit_worker.rb
+2
-2
app/workers/propagate_integration_project_worker.rb
app/workers/propagate_integration_project_worker.rb
+2
-2
app/workers/propagate_integration_worker.rb
app/workers/propagate_integration_worker.rb
+3
-3
app/workers/propagate_service_template_worker.rb
app/workers/propagate_service_template_worker.rb
+2
-1
app/workers/web_hook_worker.rb
app/workers/web_hook_worker.rb
+3
-2
app/workers/web_hooks/destroy_worker.rb
app/workers/web_hooks/destroy_worker.rb
+1
-2
app/workers/web_hooks/log_execution_worker.rb
app/workers/web_hooks/log_execution_worker.rb
+2
-2
No files found.
app/workers/file_hook_worker.rb
View file @
6cdcb057
...
@@ -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
)
...
...
app/workers/irker_worker.rb
View file @
6cdcb057
...
@@ -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
...
...
app/workers/jira_connect/forward_event_worker.rb
View file @
6cdcb057
...
@@ -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
)
...
...
app/workers/jira_connect/sync_branch_worker.rb
View file @
6cdcb057
...
@@ -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!
...
...
app/workers/jira_connect/sync_builds_worker.rb
View file @
6cdcb057
...
@@ -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!
...
...
app/workers/jira_connect/sync_deployments_worker.rb
View file @
6cdcb057
...
@@ -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!
...
...
app/workers/jira_connect/sync_feature_flags_worker.rb
View file @
6cdcb057
...
@@ -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!
...
...
app/workers/jira_connect/sync_merge_request_worker.rb
View file @
6cdcb057
...
@@ -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!
...
...
app/workers/jira_connect/sync_project_worker.rb
View file @
6cdcb057
...
@@ -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!
...
...
app/workers/project_service_worker.rb
View file @
6cdcb057
...
@@ -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
)
...
...
app/workers/propagate_integration_group_worker.rb
View file @
6cdcb057
...
@@ -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
...
...
app/workers/propagate_integration_inherit_descendant_worker.rb
View file @
6cdcb057
...
@@ -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
...
...
app/workers/propagate_integration_inherit_worker.rb
View file @
6cdcb057
...
@@ -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
...
...
app/workers/propagate_integration_project_worker.rb
View file @
6cdcb057
...
@@ -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
...
...
app/workers/propagate_integration_worker.rb
View file @
6cdcb057
...
@@ -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
))
...
...
app/workers/propagate_service_template_worker.rb
View file @
6cdcb057
# 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
...
...
app/workers/web_hook_worker.rb
View file @
6cdcb057
...
@@ -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
)
...
...
app/workers/web_hooks/destroy_worker.rb
View file @
6cdcb057
...
@@ -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
)
...
...
app/workers/web_hooks/log_execution_worker.rb
View file @
6cdcb057
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment