Add sidekiq
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
:concurrency: 5
|
||||
staging:
|
||||
:concurrency: 10
|
||||
production:
|
||||
:concurrency: 20
|
||||
:queues:
|
||||
- default
|
||||
- mailers
|
||||
|
||||
# These are the cron jobs
|
||||
:scheduler:
|
||||
:schedule:
|
||||
Reference in New Issue
Block a user