discourse-sidekiq-monitor/plugin.rb

17 строки
448 B
Ruby
Исходник Постоянная ссылка Обычный вид История

2018-08-02 15:34:22 +03:00
# name: sidekiq-monitor
2018-08-08 20:54:31 +03:00
# about: Exposes an endpoint to show the current status of sidekiq
# version: 0.1.0
2018-08-02 15:34:22 +03:00
# authors: Leo McArdle
# url: https://github.com/mozilla/discourse-sidekiq-monitor
2018-08-08 20:54:31 +03:00
enabled_site_setting :sidekiq_monitor_enabled
require_relative "lib/sidekiq_monitor"
2018-08-02 15:34:22 +03:00
after_initialize do
2018-08-08 20:54:31 +03:00
if SiteSetting.sidekiq_monitor_enabled
require_relative "jobs/scheduled/sidekiq_monitor_ping"
Jobs.enqueue :sidekiq_monitor_ping
end
2018-08-02 15:34:22 +03:00
end