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
e83084fb
Commit
e83084fb
authored
Apr 25, 2019
by
Valery Sizov
Committed by
Douglas Barbosa Alexandre
Apr 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Reliable fetcher by default
parent
9c39e328
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
changelogs/unreleased/10327-enable-reliable-fetcher-by-default.yml
...s/unreleased/10327-enable-reliable-fetcher-by-default.yml
+5
-0
config/initializers/sidekiq.rb
config/initializers/sidekiq.rb
+14
-3
No files found.
changelogs/unreleased/10327-enable-reliable-fetcher-by-default.yml
0 → 100644
View file @
e83084fb
---
title
:
Enable Sidekiq Reliable Fetcher for background jobs by default
merge_request
:
27530
author
:
type
:
added
config/initializers/sidekiq.rb
View file @
e83084fb
...
...
@@ -45,9 +45,8 @@ Sidekiq.configure_server do |config|
ActiveRecord
::
Base
.
clear_all_connections!
end
if
Feature
::
FlipperFeature
.
table_exists?
&&
Feature
.
enabled?
(
:gitlab_sidekiq_reliable_fetcher
)
# By default we're going to use Semi Reliable Fetch
config
.
options
[
:semi_reliable_fetch
]
=
Feature
.
enabled?
(
:gitlab_sidekiq_enable_semi_reliable_fetcher
,
default_enabled:
true
)
if
enable_reliable_fetch?
config
.
options
[
:semi_reliable_fetch
]
=
enable_semi_reliable_fetch_mode?
Sidekiq
::
ReliableFetch
.
setup_reliable_fetch!
(
config
)
end
...
...
@@ -90,3 +89,15 @@ Sidekiq.configure_client do |config|
chain
.
add
Gitlab
::
SidekiqStatus
::
ClientMiddleware
end
end
def
enable_reliable_fetch?
return
true
unless
Feature
::
FlipperFeature
.
table_exists?
Feature
.
enabled?
(
:gitlab_sidekiq_reliable_fetcher
,
default_enabled:
true
)
end
def
enable_semi_reliable_fetch_mode?
return
true
unless
Feature
::
FlipperFeature
.
table_exists?
Feature
.
enabled?
(
:gitlab_sidekiq_enable_semi_reliable_fetcher
,
default_enabled:
true
)
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