Skip to content

Commit ab4be2f

Browse files
committed
Add DISABLE_SOLID_QUEUE environment variable
Allow disabling solid queue puma plugin via environment variable. By default loads solid queue plugin in production mode unless DISABLE_SOLID_QUEUE is set to "true". This is used to disable the solid queue supervisor process from our web server ECS tasks. This allows us to test these changes in non-production environments. This is part of work moving the solid queue workers into a separate ECS task.
1 parent 4d01940 commit ab4be2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/puma.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
# this is to prevent 502s
4242
persistent_timeout ENV.fetch("RAILS_PERSISTENT_TIMEOUT", 75)
4343

44-
plugin :solid_queue if Rails.env.production?
44+
plugin :solid_queue if Rails.env.production? && ENV.fetch("DISABLE_SOLID_QUEUE", "false") != "true"

0 commit comments

Comments
 (0)