Add sidekiq

This commit is contained in:
2023-10-01 14:31:52 +01:00
parent 3c55c64b3f
commit 285cf78d63
7 changed files with 36 additions and 2 deletions
+2
View File
@@ -11,6 +11,8 @@ module LectureAttendanceManager
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 7.0
config.active_job.queue_adapter = :sidekiq
# Configuration for the application, engines, and railties goes here.
#
# These settings can be overridden in specific environments using the files
+7
View File
@@ -0,0 +1,7 @@
Sidekiq.configure_server do |config|
config.redis = { url: ENV['REDIS_URL'] }
end
Sidekiq.configure_client do |config|
config.redis = { url: ENV['REDIS_URL'] }
end
+13
View File
@@ -0,0 +1,13 @@
---
:concurrency: 5
staging:
:concurrency: 10
production:
:concurrency: 20
:queues:
- default
- mailers
# These are the cron jobs
:scheduler:
:schedule: