jasper print speed refactor working

This commit is contained in:
Jason Jordan
2026-03-27 08:04:37 -04:00
parent a43c8bf6b5
commit 9f306d3150
33 changed files with 1015 additions and 168 deletions
+1
View File
@@ -40,5 +40,6 @@ module Baclight
# Don't generate system test files.
config.generators.system_tests = nil
config.active_job.queue_adapter = :solid_queue
end
end
+4
View File
@@ -81,4 +81,8 @@ Rails.application.configure do
# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
# config.generators.apply_rubocop_autocorrect_after_generate!
config.active_job.queue_adapter = :solid_queue
config.solid_queue.connects_to = { database: { writing: :baclight } }
# config.active_job.queue_adapter = :async
end
+3 -1
View File
@@ -71,7 +71,9 @@ Rails.application.configure do
# config.cache_store = :mem_cache_store
# Use a real queuing backend for Active Job (and separate queues per environment).
# config.active_job.queue_adapter = :resque
config.active_job.queue_adapter = :solid_queue
# config.solid_queue.connects_to = { database: { writing: :queue } }
# config.solid_queue.connects_to = { database: { writing: :queue } }
# config.active_job.queue_name_prefix = "railsondocker_production"
# Disable caching for Action Mailer templates even if Action Controller
+2
View File
@@ -29,6 +29,8 @@ port ENV.fetch("PORT", 3002)
# Allow puma to be restarted by `bin/rails restart` command.
plugin :tmp_restart
plugin :solid_queue if Rails.env.development?
# plugin :tailwindcss
# Only use a pidfile when requested
+18
View File
@@ -0,0 +1,18 @@
default: &default
dispatchers:
- polling_interval: 1
batch_size: 500
workers:
- queues: "*"
threads: 3
processes: <%= ENV.fetch("JOB_CONCURRENCY", 1) %>
polling_interval: 0.1
development:
<<: *default
test:
<<: *default
production:
<<: *default
+15
View File
@@ -0,0 +1,15 @@
# examples:
# periodic_cleanup:
# class: CleanSoftDeletedRecordsJob
# queue: background
# args: [ 1000, { batch_size: 500 } ]
# schedule: every hour
# periodic_cleanup_with_command:
# command: "SoftDeletedRecord.due.delete_all"
# priority: 2
# schedule: at 5am every day
production:
clear_solid_queue_finished_jobs:
command: "SolidQueue::Job.clear_finished_in_batches(sleep_between_batches: 0.3)"
schedule: every hour at minute 12