mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: shutdown_ok parameter to /srv/status
This allows probers to distinguish between liveness and readiness conditions
This commit is contained in:
parent
ec21a15fa7
commit
055cb55872
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class ForumsController < ActionController::Base
|
|||
|
||||
def status
|
||||
if $shutdown # rubocop:disable Style/GlobalVars
|
||||
render plain: "shutting down", status: 500
|
||||
render plain: "shutting down", status: (params[:shutdown_ok] ? 200 : 500)
|
||||
else
|
||||
render plain: "ok"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue