Setup solid queue for job processing #19

Merged
atomaka merged 2 commits from solid-queue into main 2024-07-26 21:48:33 -04:00
2 changed files with 3 additions and 0 deletions
Showing only changes of commit 8b15743d64 - Show all commits

View file

@ -50,6 +50,8 @@ Rails.application.configure do
# Highlight code that triggered database queries in logs. # Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true config.active_record.verbose_query_logs = true
# Use a real queuing backend for Active Job (and separate queues per environment).
config.active_job.queue_adapter = :solid_queue
# Highlight code that enqueued background job in logs. # Highlight code that enqueued background job in logs.
config.active_job.verbose_enqueue_logs = true config.active_job.verbose_enqueue_logs = true

View file

@ -49,6 +49,7 @@ port ENV.fetch("PORT", 3000)
# Allow puma to be restarted by `bin/rails restart` command. # Allow puma to be restarted by `bin/rails restart` command.
plugin :tmp_restart plugin :tmp_restart
plugin :solid_queue
# Only use a pidfile when requested # Only use a pidfile when requested
pidfile ENV["PIDFILE"] if ENV["PIDFILE"] pidfile ENV["PIDFILE"] if ENV["PIDFILE"]