diff --git a/Gemfile b/Gemfile index 566fc6326..ac8f14fa3 100644 --- a/Gemfile +++ b/Gemfile @@ -40,6 +40,7 @@ gem "sentry-ruby" gem "sentry-rails" gem "rails_structured_logging", bc: "rails-structured-logging" gem "yabeda" +gem "yabeda-actioncable" gem "yabeda-activejob", github: "rosa/yabeda-activejob", branch: "support-end-time-in-seconds" gem "yabeda-gc" gem "yabeda-http_requests" diff --git a/Gemfile.lock b/Gemfile.lock index 6acd98a6e..056b9f26e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -576,6 +576,11 @@ GEM anyway_config (>= 1.0, < 3) concurrent-ruby dry-initializer + yabeda-actioncable (0.2.2) + actioncable (>= 7.2) + activesupport (>= 7.2) + railties (>= 7.2) + yabeda (~> 0.8) yabeda-gc (0.4.0) yabeda (~> 0.6) yabeda-http_requests (0.2.1) @@ -655,6 +660,7 @@ DEPENDENCIES webmock webrick yabeda + yabeda-actioncable yabeda-activejob! yabeda-gc yabeda-http_requests diff --git a/config/initializers/yabeda.rb b/config/initializers/yabeda.rb index cf1adbd4f..cad88f80a 100644 --- a/config/initializers/yabeda.rb +++ b/config/initializers/yabeda.rb @@ -8,3 +8,8 @@ Yabeda::ActiveJob.install! require "yabeda/solid_queue" Yabeda::SolidQueue.install! + +Yabeda::ActionCable.configure do |config| + # Fizzy relies primarily on Turbo::StreamsChannel + config.channel_class_name = "ActionCable::Channel::Base" +end diff --git a/config/recurring.yml b/config/recurring.yml index cf70b28f7..8a121e3fd 100644 --- a/config/recurring.yml +++ b/config/recurring.yml @@ -32,5 +32,10 @@ production: &production class: SQLiteBackupsJob schedule: every day at 05:00 + # Metrics + yabeda_actioncable: + command: "Yabeda::ActionCable.measure" + schedule: every 60 seconds + beta: *production staging: *production