Method: MiscController#upgrading_status

Defined in:
app/controllers/misc_controller.rb

#upgrading_statusObject



21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'app/controllers/misc_controller.rb', line 21

def upgrading_status
  if FluentdUiRestart::LOCK.present?
    return render text: "updating"
  end

  if $$.to_s == params[:old_pid]
    # restarting fluentd-ui is finished, but PID doesn't changed.
    # maybe error occured at FluentdUiRestart#perform
    render text: "failed"
  else
    render text: "finished"
  end
end