From af9d8dddcb034f78cd6b0a458f544f5b5437fc9d Mon Sep 17 00:00:00 2001 From: Matthew Bernhardt Date: Tue, 24 Feb 2026 11:18:21 -0500 Subject: [PATCH 1/2] Define job polling interval in env Currently, the application uses an env variable to define the solid cable polling interval, in order to allow deploying instances to tweak some platform behaviors without code changes. This proposal is to adopt the same strategy for the job queue polling interval. The default value (if no env variable is defined) is the same as it is now - 0.1 seconds - but if a deploying instance needs to run a little slower, this will enable that. --- config/queue.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/queue.yml b/config/queue.yml index 87c623c68..826fd478a 100644 --- a/config/queue.yml +++ b/config/queue.yml @@ -7,7 +7,7 @@ default: &default - queues: "*" threads: 3 processes: <%= ENV.fetch("JOB_CONCURRENCY", 1) %> - polling_interval: 0.1 + polling_interval: <%= ENV.fetch("JOB_POLLING_INTERVAL", 0.1) %> development: <<: *default From 78f578dd8d3814fb764b0d1f0dafa6a845a9d14c Mon Sep 17 00:00:00 2001 From: Matthew Bernhardt Date: Tue, 17 Mar 2026 10:27:44 -0400 Subject: [PATCH 2/2] Update db url to fall back to constructed url --- config/database.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.yml b/config/database.yml index e59ca512a..0fcc5e3f5 100755 --- a/config/database.yml +++ b/config/database.yml @@ -23,4 +23,4 @@ test: production: <<: *default - url: <%= ENV["DATABASE_URL"] %> + url: <%= ENV["DATABASE_URL"].presence || "mysql2://#{ENV["DB_USERNAME"]}:#{ENV["DB_PASSWORD"]}@#{ENV["DB_HOST"]}:3306/#{ENV["DB_NAME"]}" %>