Skip to content

Commit

Permalink
Merge branch 'feature/sidekiq-queue-priorities' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ewlarson committed Oct 18, 2023
2 parents 25419e1 + 36588bc commit 7586bab
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ GEM
mime-types
rails (>= 6.1, < 7.1)
rgeo-geojson
geoblacklight_admin (0.3.0)
geoblacklight_admin (0.3.1)
active_storage_validations (~> 1.0)
amazing_print
blacklight (~> 7.33)
Expand Down Expand Up @@ -446,7 +446,7 @@ GEM
llhttp-ffi (0.3.1)
ffi-compiler (~> 1.0)
rake (~> 13.0)
loofah (2.21.3)
loofah (2.21.4)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
m (1.5.1)
Expand Down Expand Up @@ -489,7 +489,7 @@ GEM
multi_xml (0.6.0)
net-http-persistent (4.0.2)
connection_pool (~> 2.2)
net-imap (0.4.0)
net-imap (0.4.1)
date
net-protocol
net-pop (0.1.2)
Expand Down Expand Up @@ -591,7 +591,7 @@ GEM
regexp_parser (2.8.1)
request_store (1.5.1)
rack (>= 1.4)
responders (3.1.0)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
retriable (3.1.2)
Expand Down Expand Up @@ -667,7 +667,7 @@ GEM
redis (>= 4.5.0, < 5)
sidekiq-failures (1.0.4)
sidekiq (>= 4.0.0)
simple_form (5.2.0)
simple_form (5.3.0)
actionpack (>= 5.2)
activemodel (>= 5.2)
sitemap_generator (6.0.2)
Expand All @@ -689,7 +689,7 @@ GEM
temple (0.10.3)
tether-rails (1.4.0)
rails (>= 3.1)
thor (1.2.2)
thor (1.3.0)
thread_safe (0.3.6)
tilt (2.3.0)
timeout (0.4.0)
Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sidekiq: bundle exec sidekiq -q devise,1 -q default
sidekiq: bundle exec sidekiq -q priority -q devise -q default
sidekiq_web: bundle exec puma sidekiq.ru
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
# Google Analytics - Dev
config.google_analytics = 'UA-82483267-2'

config.active_job.queue_adapter = :inline
config.active_job.queue_adapter = :sidekiq

# Annotate rendered view with file names.
# config.action_view.annotate_rendered_view_with_filenames = true
Expand Down
8 changes: 5 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
get 'help', :to => redirect('https://sites.google.com/umn.edu/btaa-gdp/help')
get 'robots.:format' => 'robots#robots'

# Sidekiq - Uncomment and restart app to view sidekiq dashboard
# mount Sidekiq::Web => "/sidekiq"

# Feedback
mount PointlessFeedback::Engine, :at => '/feedback'

Expand Down Expand Up @@ -99,6 +96,11 @@
end

namespace :admin do

authenticate :user, ->(user) { user.admin? } do
mount Sidekiq::Web => "/sidekiq"
end

devise_for :users, controllers: {invitations: "devise/invitations"}, skip: [:registrations]
# Root
root to: "documents#index"
Expand Down
5 changes: 5 additions & 0 deletions config/sidekiq.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
:concurrency: 3
:max_retries: 1

:queues:
- priority
- devise
- default

0 comments on commit 7586bab

Please sign in to comment.