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
d0fb0a2a
Commit
d0fb0a2a
authored
Feb 13, 2020
by
nmilojevic1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fail fast without ActiveRecord connection
parent
5f7da728
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
lib/gitlab/cluster/mixins/puma_cluster.rb
lib/gitlab/cluster/mixins/puma_cluster.rb
+1
-0
lib/gitlab/cluster/mixins/unicorn_http_server.rb
lib/gitlab/cluster/mixins/unicorn_http_server.rb
+2
-0
No files found.
lib/gitlab/cluster/mixins/puma_cluster.rb
View file @
d0fb0a2a
...
...
@@ -6,6 +6,7 @@ module Gitlab
module
PumaCluster
def
self
.
prepended
(
base
)
raise
'missing method Puma::Cluster#stop_workers'
unless
base
.
method_defined?
(
:stop_workers
)
raise
'ActiveRecord connection not established. Unable to start.'
unless
ActiveRecord
::
Base
.
connected?
end
# This looks at internal status of `Puma::Cluster`
...
...
lib/gitlab/cluster/mixins/unicorn_http_server.rb
View file @
d0fb0a2a
...
...
@@ -8,6 +8,8 @@ module Gitlab
unless
base
.
method_defined?
(
:reexec
)
&&
base
.
method_defined?
(
:stop
)
raise
'missing method Unicorn::HttpServer#reexec or Unicorn::HttpServer#stop'
end
raise
'ActiveRecord connection not established. Unable to start.'
unless
::
ActiveRecord
::
Base
.
connected?
end
def
reexec
...
...
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