Install Oban with dedicated repo

This commit is contained in:
Claudio Ortolina
2025-04-13 18:08:05 +01:00
parent 3f4e2bc975
commit c44fcc7321
10 changed files with 59 additions and 1 deletions
+13
View File
@@ -68,6 +68,19 @@ if config_env() == :prod do
cache_size: -8000,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5")
background_database_path =
System.get_env("BACKGROUND_DATABASE_PATH") ||
raise """
environment variable BACKGROUND_DATABASE_PATH is missing.
For example: /etc/music_library/music_library_background.db
"""
config :music_library, MusicLibrary.BackgroundRepo,
database: background_database_path,
# 16MB * pool_size = base memory usage
cache_size: -8000,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "5")
# The secret key base is used to sign/encrypt cookies and other secrets.
# A default value is used in config/dev.exs and config/test.exs but you
# want to use a different value for prod and you most likely don't want