Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
427 B
Raw Blame
<%# locals: () %>
<%# Warns when the background worker that delivers AI responses is down or
    backed up. Self-hosted only — managed instances run their own workers. %>
<% if Rails.application.config.app_mode.self_hosted? && Current.user.ai_enabled? && !BackgroundJobHealth.healthy? %>
  <%= render DS::Alert.new(
    variant: "warning",
    message: t("chats.worker_unhealthy_warning"),
    live: :polite
  ) %>
<% end %>