chore(portal): increase queue_target on bg nodes to 5000 (#9732)

The domain nodes that run background jobs aren't user-facing and as
such, don't need short queue_interval times. They can afford to wait a
few seconds for a connection from the pool to become available.

This should be a relatively low-risk change as it does not increase the
resources used on the app server and database, it only relaxes the
length of time we want for a connection to be available for us to use.
This commit is contained in:
Jamil
2025-06-30 12:33:01 -07:00
committed by GitHub
parent 23c43c12dd
commit 865442eabe

View File

@@ -18,6 +18,10 @@ if config_env() == :prod do
{:ssl_opts, env_var_to_config!(:database_ssl_opts)},
{:parameters, env_var_to_config!(:database_parameters)}
] ++
if(env_var_to_config(:background_jobs_enabled),
do: [{:queue_target, 5_000}],
else: []
) ++
if(env_var_to_config(:database_password),
do: [{:password, env_var_to_config!(:database_password)}],
else: []