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
ab050d67
Commit
ab050d67
authored
Aug 12, 2021
by
Bala Kumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include database load balancing for Deployments HooksWorker
Changelog: performance
parent
d2990167
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
app/workers/deployments/hooks_worker.rb
app/workers/deployments/hooks_worker.rb
+1
-1
config/feature_flags/development/load_balancing_for_deployments_hooks_worker.yml
...velopment/load_balancing_for_deployments_hooks_worker.yml
+8
-0
spec/workers/deployments/hooks_worker_spec.rb
spec/workers/deployments/hooks_worker_spec.rb
+5
-0
No files found.
app/workers/deployments/hooks_worker.rb
View file @
ab050d67
...
...
@@ -4,7 +4,7 @@ module Deployments
class
HooksWorker
# rubocop:disable Scalability/IdempotentWorker
include
ApplicationWorker
data_consistency
:
always
data_consistency
:
delayed
,
feature_flag: :load_balancing_for_deployments_hooks_worker
queue_namespace
:deployment
feature_category
:continuous_delivery
...
...
config/feature_flags/development/load_balancing_for_deployments_hooks_worker.yml
0 → 100644
View file @
ab050d67
---
name
:
load_balancing_for_deployments_hooks_worker
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67878
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/338342
milestone
:
'
14.2'
type
:
development
group
:
group::release
default_enabled
:
false
spec/workers/deployments/hooks_worker_spec.rb
View file @
ab050d67
...
...
@@ -49,5 +49,10 @@ RSpec.describe Deployments::HooksWorker do
worker
.
perform
(
deployment_id:
deployment
.
id
,
status_changed_at:
status_changed_at
)
end
it_behaves_like
'worker with data consistency'
,
described_class
,
feature_flag: :load_balancing_for_deployments_hooks_worker
,
data_consistency: :delayed
end
end
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