Skip to content

Commit 1c59495

Browse files
committed
add solid_queue_dashboard
1 parent 0952104 commit 1c59495

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,5 @@ gem "telegram-bot-ruby", "~> 2.4"
7070
gem "jieba_rb", "~> 0.0.5"
7171

7272
gem "ffi"
73+
74+
gem "solid_queue_dashboard", "~> 0.2.0"

Gemfile.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ GEM
9696
rack-test (>= 0.6.3)
9797
regexp_parser (>= 1.5, < 3.0)
9898
xpath (~> 3.2)
99+
chartkick (5.2.0)
99100
childprocess (5.1.0)
100101
logger (~> 1.5)
101102
concurrent-ruby (1.3.5)
@@ -148,6 +149,8 @@ GEM
148149
raabro (~> 1.4)
149150
globalid (1.2.1)
150151
activesupport (>= 6.1)
152+
groupdate (6.7.0)
153+
activesupport (>= 7.1)
151154
i18n (1.14.7)
152155
concurrent-ruby (~> 1.0)
153156
ice_nine (0.11.2)
@@ -351,6 +354,10 @@ GEM
351354
fugit (~> 1.11.0)
352355
railties (>= 7.1)
353356
thor (>= 1.3.1)
357+
solid_queue_dashboard (0.2.0)
358+
chartkick (>= 5.0)
359+
groupdate (>= 6.5)
360+
solid_queue (>= 1.0.0)
354361
sqlite3 (2.7.3-aarch64-linux-gnu)
355362
sqlite3 (2.7.3-aarch64-linux-musl)
356363
sqlite3 (2.7.3-arm-linux-gnu)
@@ -446,6 +453,7 @@ DEPENDENCIES
446453
solid_cable
447454
solid_cache
448455
solid_queue
456+
solid_queue_dashboard (~> 0.2.0)
449457
sqlite3 (>= 2.1)
450458
stimulus-rails
451459
tailwindcss-rails

config/routes.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require "solid_queue_dashboard"
12
Rails.application.routes.draw do
23
resources :group_classifier_states
34
resources :banned_users
@@ -16,4 +17,6 @@
1617

1718
# Defines the root path route ("/")
1819
root "trained_messages#index"
20+
21+
mount SolidQueueDashboard::Engine, at: "/solid-queue"
1922
end

lib/tasks/telegram_data_collector.rake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ require "json"
44
# Minimal TDLib FFI wrapper, tdlib-ruby is conflict with
55
# telegram-bot-ruby as they depends on dry-core
66
module TDJson
7-
if Rails.env.development?
7+
tdlib_path = ENV["TDLIB_PATH"]
8+
if Rails.env.development? && tdlib_path && !tdlib_path.empty?
89
extend FFI::Library
910
lib_name = "tdjson"
1011
if FFI::Platform.windows?

0 commit comments

Comments
 (0)