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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
46044203
Commit
46044203
authored
Apr 25, 2019
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Sidekiq initializer file
parent
0ddc0a3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
config/initializers/sidekiq.rb
config/initializers/sidekiq.rb
+12
-12
No files found.
config/initializers/sidekiq.rb
View file @
46044203
require
'sidekiq/web'
require
'sidekiq/web'
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
# Disable the Sidekiq Rack session since GitLab already has its own session store.
# Disable the Sidekiq Rack session since GitLab already has its own session store.
# CSRF protection still works (https://github.com/mperham/sidekiq/commit/315504e766c4fd88a29b7772169060afc4c40329).
# CSRF protection still works (https://github.com/mperham/sidekiq/commit/315504e766c4fd88a29b7772169060afc4c40329).
Sidekiq
::
Web
.
set
:sessions
,
false
Sidekiq
::
Web
.
set
:sessions
,
false
...
@@ -89,15 +101,3 @@ Sidekiq.configure_client do |config|
...
@@ -89,15 +101,3 @@ Sidekiq.configure_client do |config|
chain
.
add
Gitlab
::
SidekiqStatus
::
ClientMiddleware
chain
.
add
Gitlab
::
SidekiqStatus
::
ClientMiddleware
end
end
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